The strikes were defensive, officials said, after Iran launched drones at commercial ships in the Strait of Hormuz.