There is a difference between the judicial culture of interpreting the Constitution between the U.S. and Canada. In the U.S., especially among conservatives, there is a leaning towards originalism - what the Constitution meant when written - rather than as a living document whose interpretation would change with the times.

Indeed, the "meaning of" Trump's immigration ban was interpreted by his campaign promises to be anti-Muslim, and therefore discriminatory, even if government lawyers argued that his campaign statements should be disregarded. So unless the Patriot Act can be turned into a Constitutional Amendment, the SCOTUS will not decide based on any special anti-terrorism principles.