The agency made the change at a time when its detention centers are coming under increasing scrutiny over conditions.