United States president Donald Trump has been one of the first to take the stand at the UN General Assembly.