What people seem to forget is that citizens have First Amendment rights; government officials do not.
A government official has no right to violate the civil rights of a citizen, especially by using their government duties to do so.
It will be interesting to see how the Supreme Court rules.