The Iraqis, who had been ordered deported years or decades ago because of criminal offenses but had been allowed to live in the United States, must be released within 30 days, unless the Trump administration can show a strong reason to detain them or can deport them in that time, Goldsmith ruled. One Iraqi man had been detained since January 2017, he said.