The decision is a win for Lisa Cook, the Federal Reserve governor whom President Trump sought to dismiss over allegations of mortgage fraud.

The ruling, which will almost certainly be appealed, is a blow to the Trump administration’s efforts to assert more control over the traditionally independent Federal Reserve.

No president has sought to fire a Fed governor before.