The United States was set on Tuesday to sign an agreement about Greenland, the Arctic island that has been one of President Trump’s obsessions.

Mr. Trump said last week that after months of negotiations between the United States, Denmark and Greenland, a semiautonomous Danish territory, his administration had reached a deal to expand the U.S. security presence on the island.

He is expected to sign the agreement with the prime ministers of Denmark and Greenland in New York, where world leaders are gathering for the U.N. General Assembly meeting.

The hope on all sides is that the agreement will end more than a year of tensions that were sparked by Mr. Trump’s threats to seize the island and that caused a rift in the North Atlantic Treaty Organization.

Details of the deal have remained a mystery. Mr. Trump claimed last week that the United States had secured “permanent control over security, and all other needs” in Greenland, while the Danish prime minister said the deal “recognizes the sovereignty and territorial integrity” of the Kingdom of Denmark. The agreement appears to fall far short of Mr. Trump’s longstanding demands to take over the island, which he has said is essential to American security.

Negotiators have been working for months on issues including the deployment of more American troops in Greenland, the territory’s mineral resources and ways of blocking Russia and China from gaining a foothold there. Russia and China have been stepping up their presence in the Arctic, sometimes working together, which Mr. Trump has used to justify his desire to annex Greenland.

Many analysts have wondered how Tuesday’s deal would differ from a decades-old defense agreement that grants American forces sweeping access to Greenland.

That agreement, signed in 1951, allows the United States to “construct, install, maintain, and operate” military bases across the territory, as well as to house personnel and “control landings, takeoffs, anchorages, moorings, movements, and operation of ships, aircraft, and waterborne craft.” Greenland is already NATO territory as a part of Denmark, one of the alliance’s founding members.

The island is bigger than Mexico but sparsely populated. Many of its 57,000 or so residents have voiced concerns about the new agreement, saying they don’t want a larger U.S. military presence.