Trump takes aim at migration and climate policies in scathing UN speech