A day after the Trump administration sued Denver and Colorado officials to invalidate restrictions on cooperation with immigration enforcement, Democratic lawmakers gave final approval Saturday to a bill that would expand the state’s laws.

The state House’s 42-21 party-line vote approving Senate Bill 276 moved it one step away from Gov. Jared Polis’ desk. The bill would prohibit local government entities and employees from sharing data with federal immigration authorities, and it would block those authorities from entering nonpublic areas of public buildings, jails and prisons without a warrant.

The bill also would prevent jails from delaying a person’s release for the benefit of immigration enforcement, eliminate certain affidavits that undocumented Coloradans must fill out to receive IDs or in-state tuition, and expand a law involving people who pleaded guilty to low-level crimes in specific circumstances. They would be able to request that those pleas be overturned if the plea had immigration consequences that were unknown to the defendant.

The bill’s supporters argued the expanded protections were necessary amid the mass-deportation efforts and that they wanted to ensure federal authorities had proper warrants and obeyed due process requirements.

“When we violate due process, we violate justice,” said Rep. Lorena Garcia, an Adams County Democrat sponsoring the bill with Rep. Elizabeth Velasco.

SB-276 passed an initial voice vote Friday. As lawmakers debated the bill, the U.S. Department of Justice’s lawsuit against state officials became public.

The lawsuit seeks to invalidate so-called “sanctuary” laws that prohibit state officials from sharing information with federal authorities or holding people in jail on immigration detainers — laws that SB-276 builds upon.

Republican lawmakers, who have opposed the bill, warned Friday that its passage risked the wrath of President Donald Trump.