The U.S., Canada and Mexico signed a new trade deal championed by President Donald Trump to replace the quarter-century-old NAFTA pact, capping a year of intense negotiations and offering a glimmer of certainty amid rising global tensions over trade.