What happened was that Republican Senators and Representatives from the border states and the US Chamber of Commerce and several major businesses mounted a last minute lobbying campaign to remind Trump that 14 Million US jobs depend on NAFTA. A lot of US auto and mechanical manufacturing would move overseas without NAFTA. So make NAFTA better, but keep it too (Trump had announced possibly withdrawing from NAFTA).