U.S. District Judge William Alsup found the firings didn’t follow federal law.

He required that immediate offers of reinstatement be sent by agencies including the departments of Veterans Affairs, Agriculture, Defense, Energy, the Interior and Treasury.