Analysts say the pact, agreed amid the US-Iran war, aims to deter attacks rather than build an offensive alliance.