New York officials’ challenge to the Trump administration’s policy of arresting undocumented immigrants in and around state courthouses will be allowed to proceed toward trial, under a Manhattan federal court ruling issued Thursday.

Citing “ancient” common-law protections against civil courthouse arrests, U.S. District Judge Jed Rakoff of the Southern District of New York said the lawsuit from New York Attorney General Letitia James and Brooklyn District Attorney Eric Gonzalez raised valid claims that the practice could have deleterious effects on the criminal justice system.