And for further help, he pulled in Andrew Leslie, a Liberal member of Parliament and a retired lieutenant general who received the United States’ Legion of Merit for his work with the American military.

All the while, Mr. Trudeau has been under pressure at home to be the world’s voice against a president who has already insulted or belittled an array of nations. Those Canadians are likely to be disappointed.

Mr. Trudeau may feel he has little choice. Canada is too closely entwined with its immense neighbor — economically, militarily, diplomatically and in countless other ways — to risk the development of serious friction.

So while Mr. Trudeau continues to promote his political values to Canadians, he and his cabinet ministers have been careful not to criticize Mr. Trump directly. It is a situation that faces the leaders of other American allies, but none have nearly as much to lose as Canada does — and none may have a leader as completely opposite to Mr. Trump in manner and belief.

“I am really proud that today Canada is standing for the open society and that we’re open to immigration, we’re open to refugees, whatever their faith; those are not necessarily popular national values in the world,” Ms. Freeland said in her corner office in Canada’s neo-Gothic Parliament buildings. She added, “I don’t think we would ever want to be sanctimonious, or behave as if we have everything figured out and we’re in a position to lecture other people on how to behave.”