The American Civil Liberties Union has sued the federal government to limit the amount of time that people can be held before seeing an immigration judge, saying many are held for months while waiting for an initial appearance.

The lawsuit was filed Thursday in federal court on behalf of three Mexicans at a San Diego immigration detention center.