To me this is what western leaders wanted. As for dealing with the Islamic Scum(IS)
I would get every army we have and attack them with full force just like WW2.
Forget religion for a moment, WW2 was started primarily by ideology, also ideology played a major part in ending WW2. Without Nazism and Communism coming to blows who knows what would have happened. The primary difference was a uniformed standing army, IS has no army as such.
Vietnam, a superior army could not contain irregular forces, a good proportion of the Communist forces were regular. Even so it was the irregular forces that proved impossible to contain, hit and run, disappear into the populace, impossible to bring superior force to bear against such tactics.
Afghanistan and the Russians, all the Afghan forces were irregulars, hit and run, blend into the population, bled the Russians will to fight dry. Afghanistan being even more of a no win situation on the subject of bringing superior forces to bear. You cannot hit what you cannot see and you simply cannot just annihilate a populous to win the war.
Recent Afghan conflict, better tactics but the end result is much the same, the irregulars are beating the hell out of the government western powers tried to give the people and the internal conflict has no end in sight.
IS, you cannot realistically put troops on the ground and expect anything other than casualties on all sides until a withdrawal. There will be no victory, the views of these people are too rooted in tribal, factional and religious loyalties. It's their culture that needs to change, you can't change such things by war.
Those reasons are why only oppressive systems seem to prosper in this area of the world. These people will not work together for a good society voluntarily. As much as western countries have tried to help give them democracy, their culture prevents it's success.