A top U.S. military commander said that the militant group that calls itself Islamic State is on the retreat "on all fronts" as the number of its combatants at its disposal declines.