The policy could also be in violation of law. Hard to see without looking at the policy and also without looking at the substance of the comments. But there are federal laws protecting certain worker activity and a policy doesn't overrule that.
It depends on the specifics of this case.