In a nutshell, it was 100% Obama's decision to withdraw all troops from Iraq. The Iraqis were perfectly fine with a U.S. base, but that would have hurt Obama politically in the 2012 election.
Mods, if you're going to allow liberals to post here, could you at least have them follow reality, and not stupid liberal talking points that everyone here knows are lies?