Federal Reserve governor Lisa Cook has sued US President Donald Trump's administration to block her attempted firing.