In a last minute vote early on Saturday, California’s legislature voted to approve a bill that would limit police cooperation with federal immigration authorities, according to multiple reports.

The bill will prohibit additional jail time meant to allow immigration enforcement officials to take undocumented immigrants arrested for other reasons into custody.

The measure that passed still allows jail and prison officials to notify the federal government if they have arrested an undocumented immigrant with a felony record, and allows federal immigration officers to interview people in custody.

ADVERTISEMENT

California’s Democratic Gov. Jerry Brown is expected to sign the legislation.

The last minute vote on the bill comes after extended negotiations over the details. The final version of the bill was released Monday but California requires bills to be published in their final form for 72 hours before a vote. California's lower chamber passed the bill on Friday. The California Senate wrapped its session following the vote.

The bill's approval comes less than a day after a federal judge blocked the Trump administration's rules requiring cities to help enforce federal immigration laws in order to receive funding.

Multiple cities have sought to defy President Trump’s immigration enforcement policies, which require that state and local communities allow federal immigration access to detention facilities and provide 48 hours notice before they release an illegal alien wanted by federal authorities.

California’s immigration laws are considered among the friendliest in the country and the state is often referred to as a “sanctuary state.”