Two federal judges have ordered the Trump administration to reinstate thousands of probationary employees it illegally fired.