Denmark and Mexico also objected, underscoring the diplomatic backlash to Trump's territorial ambitions.