While I don't know what the law is in Canada, I know the law in the US like the back of my hand.  Since the '80's, in a Supreme Court case called Beck v. CWA, it has been illegal to force members' dues to be used for political purposes, in all 50 states.