Ambassador Nikki Haley hit Mr. Trump on the way he handled relations with China.