A U.S. judge on Monday ordered the fired head of the federal agency dedicated to protecting whistleblowers to be reinstated while a court fight continues over his removal by President Donald Trump.