DES MOINES, Iowa (AP) — A lawsuit that claimed the government was violating the rights of meatpacking plant workers detained in an immigration raid was dismissed after a key demand was met — keeping the workers in the area, according to an attorney involved in the lawsuit.

The lawsuit was filed in May after the raid at Agriprocessors Inc. in Postville in which 400 people were arrested. The lawsuit claimed the detainees were subject to arbitrary and indefinite detention and denied access to attorneys, among other accusations.

It named as defendants Immigration and Customs Enforcement, as well as government officials including Homeland Security Secretary Michael Chertoff. Officials from the U.S. attorney's office said the Postville raid was the largest single immigration raid in the nation's history.

In filing the lawsuit, the lawyers were trying to prevent the detained workers from being transferred out of the state, which has happened in other raids.