A new security pact promises expanded military cooperation and potential investment while recognizing Greenland’s right to self-determination