The acting head of U.S. Customs and Border Protection resigned Tuesday amid an uproar over the discovery of migrant children being held in filthy conditions.