In matters of foreign policy, the Soviet Union never compromised on its communist ideology. They never entered into an alliance with rightist and religious groups. In Syria, they allied with Hafez al-Assad’s socialist Ba'ath Party; in Iraq, with Saddam Hussain, a secular socialist; in Vietnam, with Ho Chi Minh’s communist party; in India, with the socialist Congress and the communist parties; in Cuba, with Castro’s communist party; in Korea, with Kim Il-sung’s WPK; in Britain, with the Labor Party.
When the pro-American Iranian government led by Mohammad Reza Pahlavi was overthrown in the 1978 revolution, the American think tanks feared that the new theocratic regime in Iran would join the Soviet camp. That didn’t happen. The Soviets refused to accept the Iranian theocrats as their allies. In fact, communism in Iran was wiped out after the theocrats took over. The pro-Soviet Tudeh Party of Iran used to flourish under Mohammad Reza Pahlavi. In 1982, the Tudeh Party was banned in Iran. In 1988, several Iranian communists were executed.
Unlike the Soviet Union, the American political establishment has no ideological, moral, and political principles when it comes to foreign allies. They will join hands with any regime or movement—religious fundamentalists, totalitarians, fascists, communists—to achieve their short term political agenda.
In the 1980s, Ronald Reagan’s government trained and armed the Afghan insurgents for defeating the Soviet Union. It didn’t matter to the Americans that culturally and politically America had nothing in common with the Afghans. They didn’t consider the possibility that in the future these insurgents might become a threat to American geopolitical interests. They didn’t consider the fact that the Christian movements and the Islamic movements have been battling each other since the eleventh century.