Bush agreed to keep 30,000 in Iraq.
My understanding is that Obama pulled them out and left a few advisers behind to fend for themselves.
Bush's agreement was for us to leave.
In 2008 the American and Iraqi governments signed the U.S.–Iraq Status of Forces Agreement. It included a specific date, 30 June 2009, by which American forces should withdraw from Iraqi cities, and a complete withdrawal date from Iraqi territory by 31 December 2011
Withdrawal of U.S. troops from Iraq - Wikipedia
From your link:
Negotiations between the U.S. and Iraq for a new
SOFA began in fall 2010. There were late-night meetings at the fortified compound of then Iraqi president,
Jalal Talabani, and in video conferences between Baghdad and Washington. In June 2011, diplomats and Iraqi officials said that President Obama had told Prime Minister Maliki that he was prepared to leave up to 10,000 soldiers to continue training and equipping the Iraqi Security Forces (ISF). Mr. Maliki agreed, but said he needed time to line up political allies. Eventually, he gained authorization to continue talks with the U.S. on keeping troops in Iraq.
[66] The Iraqi parliament returned from a recess in late November 2011 (shortly before the year-end withdrawal date) because of a concern that remaining U.S. troops would not be granted immunity by Iraqi courts. American field commanders were concerned about the
Sadrist response if the troops remained and about Iraqi readiness for a transfer of power.
[67]
In August 2011, after debates between the Pentagon, the State Department and the White House, the U.S. settled on the 3,000 to 5,000 troop number. An American official said intelligence assessments stated that Iraq was not at great risk of slipping into chaos in the absence of American forces, which was a factor in the decision.
[66]
In October 2011, American officials pressed Iraqi leadership to meet again at President Talabani's compound to discuss the issue. This time the U.S. asked Iraq to take a stand on the question of immunity for troops, hoping to remove what had always been the biggest challenge.
However, they misread Iraqi politics and the Iraqi public. Having watched the Arab Spring sweep across the region and still haunted by the traumas of this and previous wars, the Iraqis were unwilling to accept anything that infringed on their sovereignty.[66]
Iraqi leadership picked up on that sentiment quickly. As a result, they publicly said they would not support legal immunity for any American troops. Some American officials have privately said that pushing for that meeting—in essence forcing the Iraqis to take a public stand on such a controversial matter before working out the politics of presenting it to their constituents and to Parliament—was a severe tactical mistake that ended any possibility of keeping American troops past December 2011.[66]
After the pull out was announced, White House aides said the U.S. would keep its embassy in Baghdad and two consulates. They also said there will be about 4,000–5,000 defense contractors.
[68]