Donald Trump has confirmed that the US will cut funding to countries that vote against it at the United Nations.