Ayatollah Ali Khamenei, Iran's supreme leader, had maintained enmity to the U.S. and Israel for more than three decades.