The Wisconsin Supreme Court ruled Friday that Marquette University was out of line to discipline a tenured professor for something he wrote online that resulted in threats against another instructor, reversing a lower court decision.

The ruling hands a victory to advocates of a broad definition for academic freedom, though the court’s focus on what it determined were flawed disciplinary proceedings at the university may have implications for other private employers outside academia.

In...