The legal fight over California’s immigration sanctuary laws will stay in Sacramento, a federal judge ruled Thursday.

U.S. District Judge John Mendez of the Eastern District of California rejected California Attorney General Xavier Becerra’s effort to transfer the case, filed earlier this month, to the Northern District court in San Francisco. That’s where U.S. District Judge William Orrick is hearing California’s challenge to a Trump administration proposal to deny law enforcement grants to cities and counties that do not cooperate with federal immigration agents.