US district judge earlier had found US had no authority to detain and deport migrant who lived in Maryland legally and ordered his return.