Trump faced intense pressure from both people who supported staying in and withdrawing from the Paris climate agreement.