A federal judge ordered the release of a father and his 5-year-old son who were being held at an immigration detention center in Dilley, Texas.