WASHINGTON — A federal judge ordered the head of an agency tasked with protecting whistleblowers reinstated Monday after he was fired last week amid an ongoing purge in the federal government.