A few months ago, Nikki Haley was one of Donald Trump’s fiercest opponents. The two candidates engaged in public spats and name-calling as they campaigned for the Republican nomination. But on the second night of the Republican National Convention, Haley set aside their past conflicts and formally endorsed her ex-boss and onetime rival for the general election.