question: Western governments considered Islamists to be the lesser of two evils when compared to whom?
sentence: 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.