U.S. Immigration officials said the detainees entered the country with visas that expired or with visa waivers that prohibited them from working.