Pact — signed in London Thursday — names Russian aggression as the “most significant and direct threat” to the two countries’ security.