It absolutely went from utter failure to just sort of failure with the surge and awakening.
No one really won (well, the Kurds, and maybe Iran), but sometimes making something really bad suck less is a victory. Given that the people who architected the turnaround were not the people who started it, I'd say they did a pretty good job with what they were given.