The head of the independent federal Office of Special Counsel has filed a lawsuit, claiming he was illegally fired by President Trump.