Legislation that would bar federal immigration authorities from arresting undocumented immigrants in and around state courthouses in New York without a judicial warrant has gained momentum in Albany, with a majority of lawmakers now signed on to sponsor the measure.

The bill, called the Protect Our Courts Act, now has support from more than half of lawmakers in both the state Assembly and Senate, making its chances of passing more likely than ever.