The voting was dominated by US President Donald Trump's pledge to take over Denmark's autonomous territory.