By JONATHAN J. COOPER, Associated Press

SACRAMENTO, Calif. (AP) — California lawmakers approved a "sanctuary state" bill on Saturday that would put new restrictions on interactions between local law enforcement and federal immigration authorities, drawing the ire of federal officials who argued the legislation prioritizes politics over public safety.

The bill, known as SB-54, is intended to bolster the state's immigrant protections, which are already among the toughest in the nation.

The legislation will now be considered by Gov. Jerry Brown, who announced his support after the top state Senate leader agreed to water down the bill and preserve authority for jail and prison officials to cooperate with immigration officers in many cases.

The legislation is the latest effort by Democratic lawmakers in California, home to an estimated 2.3 million immigrants without legal authorization, to create barriers to President Donald Trump's campaign pledge to step up deportation efforts. They've also approved money for legal assistance and college scholarships for people living illegally in the U.S., and made it harder for businesses and government agencies to disclose people's immigration status.

California lawmakers are debating the measure as the U.S. Congress considers offering legal status to young immigrants whose parents brought them into the country illegally or overstayed their visas.

"This comes as a relief that there are some legislators that are really listening," said Pablo Alvarado, executive director of the National Day Laborer Organizing Network.

The measure cleared the Legislature with support only from Democrats over the objection of Republicans who say it will protect criminals and make it harder for law-enforcement to keep people safe.

Senate President Pro Tem Kevin de Leon, D-Los Angeles, introduced SB54 shortly after Trump's election to cut off most interactions between federal immigration agents and local police and sheriff's officers. Following sharp dissent from law enforcement officials and Brown's intervention, it was scaled back significantly.

The final version prohibits law enforcement officials from asking about a person's immigration status or participating in immigration enforcement efforts. It also prohibits law enforcement officials from being deputized as immigration agents or arresting people on civil immigration warrants.

Police and sheriff's officials, including jail officers, will still be able to work with federal immigration authorities if a person has been convicted of one of some 800 crimes, mostly felonies and misdemeanors that can be charged as felonies. But they'll be barred from transferring immigrants to federal authorities if their rap sheet includes only minor offenses.

Immigration advocates generally applauded the latest version, even with de Leon's concessions. For them, the bill delivers a rare victory during Trump's presidency, preserving some protections for people in the country illegally and adding others.

The bill will prevent local police from becoming "cogs in the Trump deportation machine," de Leon said.

California police chiefs dropped their opposition but sheriffs, who run jails where the biggest impacts will be felt, remain opposed.

Los Angeles County Sheriff Jim McDonnell, who opposed initial versions of the bill, drawing protests outside his office, said he was pleased the approved legislation would still allow federal immigration agents to have access to the nation's largest jail system.

"While not perfect, SB 54 kept intact our ability to maintain partnerships with federal law enforcement officials who help us in the fight against gangs, drugs and human trafficking," McDonnell said.

The changes did not mollify U.S. Immigration and Customs Enforcement Acting Director Thomas Homan, who said the bill will deliberately destruct immigration laws and will "make California communities less safe."

"By passing this bill, California politicians have chosen to prioritize politics over public safety," Homan said in a statement. "Disturbingly, the legislation serves to codify a dangerous policy that deliberately obstructs our country's immigration laws and shelters serious criminal alien offenders."

As lawmakers considered the bill Friday another high-profile killing in San Francisco spotlighted the sanctuary issue. Immigration and Customs Enforcement disclosed that two weeks ago, before 18-year-old Erick Garcia-Pineda was a murder suspect, the San Francisco Sheriff's Department denied a request to hold him until federal authorities could take him into custody for deportation proceedings.

California's Democratic political leaders have positioned the nation's largest state as a foil to Trump and his administration. They've passed legislation and filed lawsuits aimed at protecting immigrants, combating climate change and blocking any future attempt to build a registry of Muslims.

___

Associated Press writer Michael Balsamo in Los Angeles contributed to this report.