A federal judge ruled that the Trump administration must offer tens of thousands of fired federal workers their jobs back.