Two lawsuits were filed Wednesday against U.S. Immigration and Customs Enforcement by the New York Attorney General’s Office and the Legal Aid Society, both of which allege that the federal officials are acting unlawfully by allowing ICE agents to arrest undocumented immigrants in and around state courthouses in New York.

The practice has become increasingly common in recent years, the lawsuits said, despite efforts by state officials in New York to prevent those arrests from taking place.