A federal judge has ruled that the U.S. Department of Justice's current system of detaining children with their mothers after they've crossed the U.S.-Mexico border violates an 18-year-old court settlement.