The Gulf Arab states have been grappling with how to deter Iran after the war made clear the limits of American security guarantees.