At hockey and basketball games, fans jeered during “The Star-Spangled Banner” after President Trump’s past taunts and economic threats toward Canada.