A 14-year-old girl was taken into immigration custody, but has since been ordered by a judge to be returned to Massachusetts.