In the 1970's, the US gave financial backing to he Shah of Iran in order to keep a stabilizing ally in the Middle East. The result, the Shah was deposed and an anti-Western, Muslim government took over. With plenty of US made weapons and cash.
In the 1980's, the US supported Iraq in an effort to destabilize Iran's anti-Western Muslim government. Iraq, led by Saddam Hussein, won a brutal war over its neighbor. Then with its US made weapons they invaded Kuwait. Oops. Our occupation of Kuwait led to having US troops in Saudi Arabia, which led to various groups like al Qaida getting more recruits to fight against us.
We also supported various Afghan warlords in the 1980's against the USSR. That led to the Taliban ruling in Afghanistan. Another anti-Western, Muslim government.
So when the US is deciding to help Sunni factions to help stabilize Iraq, I have my doubts.
I think that we will be funding and training the next generation of anti-Western Muslim governments in the Middle East.