My understanding is that the first amendment prohibits federal and state governments (and therefore public schools) from placing restrictions on free speech in the first place. Therefore, parts of the code of conduct are unconstitutional and so unenforceable.