The Supreme Court of Canada will weigh the constitutionality of legislation that limits members of a spy watchdog from using their parliamentary immunity to speak out.