A governor of the US central bank has made good on her threat to sue the Trump administration, which has attempted to fire her.