Chrystia Freeland, the deputy prime minister and finance minister, had been helping lead Canada’s response to the incoming Trump administration.