The security pact, to be signed in January, pledges both countries to consult each other on security concerns.