Hardline cleric who led Islamic Republic since 1989 projected power across the region and suppressed protests at home