What is so clearly wrong about trade sanctions between two countries? Do you think foreign trade is always a moral good?
And something doesn't have to be morally good for stopping it to be morally bad. For example, playing chess is morally completely neutral, but it would be morally bad to attempt to ban chess.
Likewise, Iranians using slack isn't obviously morally good, it seems morally neutral, but enforcing a slack ban against Iranians is obviously morally bad.
What trade sanctions have been applied to Canada?