Immigration and Customs Enforcement signed a $16.7 million contract for electric-shock gloves despite an army study showing the devices inflicted intense pain and excessive fear.