An 18-month-old girl was detained by U.S. immigration authorities for weeks but was returned to custody and denied medication after…