A federal judge in Sacramento has ruled that private employers must comply with federal orders seeking information about immigrant employees, partly rejecting California’s sanctuary laws.JudgeJohn Mendez approved the Justice Department’s request for a preliminary injunction against sections of the Immigrant Worker Protection Act. The judge denied the U.S.’s request to stop California from enforcing laws that bar local police from complying with federal directives and authorize the state attorney general to inspect privately owned federal detention centers.

Mendez said in court that he expects his order to be appealed.

To contact the reporter on this story: Kartikay Mehrotra in San Francisco atkmehrotra2@bloomberg.net

To contact the editors responsible for this story: David Glovin atdglovin@bloomberg.net Joe Schneider