US border chief set to resign amid controversy over conditions migrant children are living in