Mark Carney, Canada’s new prime minister, dismissed the idea of joining the US, and vowed to stand firm against trade tensions with President Trump while seeking common ground on key issues.