Petitions filed in Los Angeles and San Diego contend the men should be immediately freed or at least granted hearings to determine if they should be detained.

Both men, Mexican citizens with criminal records, were kept in legal limbo after they were deemed incompetent for deportation proceedings, according to a statement from the American Civil Liberties Union of Southern California.