The war in Afghanistan and Iraq was necessary, and was successfully drawing tens of thousands of alQueda scum from all over the world to the area. Once there, the U.S. Military took care of them. AlQueda was decimated and on the run. All Obama had to do was commit to maintenance of it. He did not. Now we got big problems.
Bush put maliki on the throne, but when they had the election, the Sunni boycotted the election and began a civil war.
Bush then expanded the number of troops in Iraq and entered the civil war on the side of the Shia to put down the Sunni. General Petraeus killed a lot of them but many fled to Syria where the would start a civil war against the shia govt there.
After the uprising was over, Maliki swore to Bush that he would share power and the oil revenue with the Sunni and the Kurds, and he did for a while, but he eventually started purging and cut off the money.
Which enabled ISIS to enter Iraq with the support of the Iraq sunni
But everything is OK now(wink, wink), because Maliki was forced out and replaced with a power and oil money sharing central govt in which the shia have the prime minister and interior minister, the sunni have the defense minister, and the Kurds have the lesser ministers.