The pact stems from waning confidence in US security commitments and a desire to establish a self-reliant Islamic defense structure.