A federal judge upheld most of California’s new sanctuary laws Thursday, but did rule the state went too far when it ordered businesses not to grant access to the Border Patrol or deportation officers. Judge John A. Mendez, a Bush appointee to the court, said the state does not have to turn over illegal immigrants and can refuse to cooperate with federal agents, as long as it still allows local police to share information. And he ruled that California has the right to perform inspections on any facility that holds illegal immigrants in the state.