For his aplomb in wading immediately back into this thread, unaffected by Starman Skye's post, lupercal should be awarded a new avatar!

Now. I'm disappointed in all of you for your short memories.*
Official, uniformed forces of the US military withdrew from Iraq by Dec. 31, 2011, under the conditions specified in the Status of Forces Agreement negotiated by (i.e., forced on) the Bush Regime in 2008. Something you should remember, since the resident's ceremonial trip to Iraq to finalize SOFA provided the best moment of his sham presidency.

In 2011, Obama and the Pentagon attempted to renegotiate SOFA to extend the occupation (no doubt exactly as Bush would have in a third term), at first with Maliki's support. They backed off once it was obvious that the Iraqi government would never, could never provide immunity to US soldiers past the deadline, not without provoking a new uprising.
In short, thanks to the struggles of the long-suffering Iraqi people against the invaders, official US forces were finally withdrawn, in keeping with SOFA, a treaty signed by Bush and implemented (despite efforts to undermine it) by Obama. No American presidents or potentates or generals deserve credit for this; sadly they will be escaping the fate they truly deserve, which would involve a long trip to the Hague.
Debatably the Obama admin's attempt to extend the official US occupation was undermined by the Wikileaks release of the Iraq war logs. Thus Assange probably deserves more credit than Obama for "ending" the war, insofar as it's over. I say probably because it's not certain that Wikileaks had this effect, although since Obama attempted to extend the war, anyone deserves more credit than he.
As others have pointed out here, fulfilment of SOFA terms hardly means an end to a hostile US presence in Iraq, but reduces it to private military contractors working both for the US and the Iraqi governments. Doubtless attacks from the air have continued, which would have to be in collaboration with Iraqi government forces. And of course the region remains destabilized and endangered by the large US forces maintained, at enormous expense to the taxpayer, in Kuwait, Qatar, UAE, Bahrain, bases in the Indian Ocean, carrier groups in the Gulf, etc. And you still have the continuing US wars in Yemen, Pakistan, Somalia, Eritrea/Ethiopia. And the expensive US attack-dog in Israel. And the profitable buyer of hundreds of billions of dollars in US weapons in the Kingdom.
But other than that, hooray! The worst criminals of the 21st century, the unpunished perpetrators of a war of aggression launched against protests from most of the world's peoples and governments, live free and prosper. They destroyed a nation, set up a civil war, caused a million deaths, made millions homeless, and poisoned future generations. But they didn't quite gain their original objective of establishing permanent official US bases on Iraqi territory; or of having US oil companies get all the best Iraqi concessions. Thank you Obama, for not (in the end) violating the SOFA as signed by Bush!
..
ON EDIT: Note
* Except, I see, jingofever in the last post before this one. Oops.
.