Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

SACRAMENTO, Calif. — California Democrats approved a "sanctuary state" bill Saturday that would limit how local and state police can interact with federal immigration agents.

The bill is intended to bolster immigrant protections in the state that are already among the toughest in the nation.

It 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.

Related: Spurred by Trump, States Battle Sanctuary Cities

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.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

"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.

Protesters hold signs as they listen to speakers at a rally outside of City Hall in San Francisco, Calif., on Jan. 25, 2017. Jeff Chiu / AP

The measure cleared the Legislature with support only from Democrats over the objection of Republicans who 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.

Related: Cities Baffled as Jeff Sessions Targets Them on Immigration

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.

"In my view this bill's going to make us less safe," said Assemblyman Jordan Cunningham, R-Templeton. "It's going to protect the criminal at the expense of the law abiding citizen."

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 shelter criminals.

"If California politicians pass this bill, they will be prioritizing politics over the safety and security of their constituents," Homan said in a statement this week.