The vote came five days into a rapidly expanding conflict that has already killed Iran's supreme leader.