Facing threats from Trump, Carney emerged as a central figure in a project to reshape the Western alliance.