During the Soviet-Afghanistan conflicts, the west is supported Islamist groups against the secular government in Afghanistan.
During the 1970s and sometimes later, Western and pro-Western governments often supported sometimes fledgling Islamists and Islamist groups that later came to be seen as dangerous enemies. Islamists were considered by Western governments bulwarks against—what were thought to be at the time—more dangerous leftist/communist/nationalist insurgents/opposition, which Islamists were correctly seen as opposing. The US spent billions of dollars to aid the mujahideen Muslim Afghanistan enemies of the Soviet Union, and non-Afghan veterans of the war returned home with their prestige, "experience, ideology, and weapons", and had considerable impact.
During the 1980, the military coup in Turkey is supported by the US which turned political Islam in this country a real power. The west also had very good relationship with Islamist Erdogan from the begining.
During the Chechenia-Russia conflicts, the west is basically supported Chechenia.
The west is supporting Islamist movements in Umrumqi in China.
The secular Baath rule in Syria is still the "enemy" of the west, the support for opposition ended up with the power of Islamic State. The west is actually claiming "IS" as enemy as well, but on the second hand, they keep supporting Ismalic militias such as Al Nusra or Al Qaida which they call as "modorate".
While Syrian Government was declared as "evil", nobody pay attention against Saudi Arabia, which is an absolute monarchy, effectively a hereditary dictatorship governed along Islamic lines. But Western countries have a deep relationship to Saudi Arabia.
So I wonder, why the western world is still supporting political Islam, directly or indirectly by trading with countries like Saudi Arabia.