You seriously don't know your history.
America, for some strange reason, backs despots, worldwide. And they kill opposition.
Iran's shah was the result of a US/UK joint operation. And SAVAK use to kill everyone opposed to the shah. Except..those hiding out in Mosques. So militants started hiding in Mosques and gaining the support of clerics. That's basically how the modern militancy started.
And you had the more nutsy kooks in Afghanistan. America, being hell bent on ousting the Russians, FINANCED those kooks. And once those kooks got rid of the Russians..they targetted America.
Obama had NOTHING to do with that.
Don't want to get off on a tangent here, but Iran's shah was a secular dictator who brought about many reforms and changes to the people. Look up the White Revolution. Where the shah gave govt land to the peasants, made women take off their veils, built roads highways, and made public education mandatory and free. In essence he and his father de-Islamicized Iran. I do agree with you that the removal of the Shah was a UK/US operation mainly, and it was all about oil.
The US would not have had to support radicals in Afghanistan had the Carter presidency not been such a disaster, that the Russians had not become emboldened to invade Afganistan. It's always good if you get the whole picture as opposed to bits and pieces. And no one can deny that Obama is Carter on steroids when it comes to foreign policy.
Whereas carter facilitated the removal of one secular dictator friendly to the US to be replaced by Islamist nutjobs, Obama has facilitated many more.