US president accuses outgoing Canadian prime minister of seeking to use issue of tariffs to extend his time in office.