The California state Legislature has passed a bill that would ban the use of private prisons and some detention centers operated by Immigration and Customs Enforcement (ICE) in the state.

Lawmakers in the California State Assembly passed Assembly Bill 32 in a 65-11 vote on Wednesday, a day after the state Senate voted overwhelmingly to approve the measure.

The bill, authored by Assembly member Rob Bonta (D), seeks to bar the state’s Department of Corrections and Rehabilitation from entering into or renewing a contract with a private prison starting in 2020. The legislation also seeks to bar the state from housing inmates in private, for-profit prison facilities after Jan. 1, 2028.

ADVERTISEMENT

It would also bar California from sending prisoners to for-profit facilities outside of the state.

However, under an exception recently added to the bill, the department would be allowed to renew or extended a contract to house state prison inmates “in order to comply with any court-ordered population cap.”

Bonta said that he added the exception to increase the bill’s chances of getting green-lighted by Gov. Gavin Newsom Gavin NewsomOVERNIGHT ENERGY: California seeks to sell only electric cars by 2035 | EPA threatens to close New York City office after Trump threats to 'anarchist' cities | House energy package sparks criticism from left and right California seeks to sell only electric cars by 2035 EPA head questions connection of climate change to natural disasters MORE (D), according to The San Francisco Chronicle.

Bonta’s bill would also apply to for-profit detention centers operated by ICE.

ICE declined to comment on the California legislation but warned that state law cannot bind "the hands of a federal law enforcement agency," according to NBC News.

"We don't comment on pending legislation," Bryan D. Cox, acting press secretary for ICE told the network. "But any person under the impression that a state law in any way binds the hands of a federal law enforcement agency which manages a national network of detention facilities would be a false impression."

The bill now heads to Newsom for consideration. Newsom, who has voiced support for phasing out the use of private prisons, has until Oct. 13 to sign or veto the measure.