Correct, and Iran didn't have to do anything but sit by. It eliminated an enemy (Iraq) which they had just fought a long bloody war, and left them the only power in the region.
And to make it fair Obama decided to give 2300 top of the line Humvees to ISIS.