A federal judge in California ruled on Thursday that six U.S. agencies, including the Department of Defense and the Department of Veterans Affairs, must reinstate thousands of newly-hired employees who had been terminated during President Donald Trump’s effort to reshape the federal workforce.