Donald Trump's deal with Denmark to give US "permanent control" over Greenland's security would bar Russia and China from setting up bases in the territory.