The enhanced defense ties come amid growing uncertainty about the reliability of the United States as a long-standing security guarantor, and after an attack on Qatar by Israel.