The deal will be the latest security pact in the face of the Philippines’ increasingly tense confrontations with China.