If it's a government (public) school, the government does not have the right to squelch an individual's right to their freedom of speech, as per the Constitution. If someone said something that threatened another individual then the punishment fits the crime, however the teen did not threaten anyone, therefore the punishment is against the law.