Agreement eases uncertainty but president threatens tariffs on Canada if it does not sign up

