US and Canada race midnight deadline to avert Trump's 50% tariffs