Iran’s bombardment of its Gulf neighbors has inexorably dragged them into a war that they had desperately hoped to avoid.