The former U.S. ambassador to the United Nations was Trump's last remaining challenger in the 2024 GOP primary.