The agreement, which Danish officials said is not final, stops far short of Trump's often-stated goal of taking possession of the territory.