A federal judge in San Francisco ordered the Trump administration to rehire thousands of employees fired in February, making the Office of Personnel Management's directive to fire them unlawful.