Four federal appeals courts, including the San Francisco-based United States Court of Appeals for the Ninth Circuit in this case, have declared the mandatory-detention provision unconstitutional at least as applied to lawful permanent residents, who have more rights than aliens who have not been lawfully admitted into the country.