A federal judge in San Francisco on Tuesday indefinitely barred the Trump administration from firing federal employees during the government shutdown.