Ms. Haley early and frequent critic of Mr. Trump Resigned as U.S. Ambassador to the United Nations