Justin Trudeau is caught between two economies, and his visit to San Francisco on Thursday showed why.