A federal judge has ordered Hampton Dellinger to be reinstated as head of the Office of Special Counsel while a court fight continues over his removal by President Donald Trump.