The strikes, which killed Iran’s supreme leader, followed a visible buildup of U.S. forces in the Middle East.