The man had been detained at an immigration center in Laredo, Texas, since June. Immigration officials said he had received proper medical care.