When Obama left office the US efforts to create a credible fighting force in Syria/Iraq had been underway for some time. Shia militias and others were financed, armed and trained to combat ISIS, resulting in gradual reclamations of ISIS -held territories over a broad area, before the Trump Presidency. Re-writers of history insist on claiming that Trump singlehandedly wiped out The Islamic State from scratch.
Contrary to your goofball version, Obama insisted that non-US military forces would have to carry the combat missions to ISIS, rather than allowing a continuation of American casualties following the Bush-Chaney Iraq abortion. Good for him. It obviously prolonged the time it took to finally succeed, but at least Americans didn't have to turn in to the 6-o'clock news, every night, to see their sons, daughters, moms and dads' endless number of caskets unloaded at Andrews Air Force Base, for those years.