Juan Espinoza Martinez is being illegally held because he has not had a hearing in which an immigration judge could evaluate him as a flight risk or danger, the judge concluded.