(Reuters) - The Wisconsin Supreme Court on Friday said Marquette University improperly suspended a conservative political science professor for publicly accusing a graduate student by name in a blog post of stifling classroom discussion against same-sex marriage.

By a 4-2 vote, the court ordered the private Catholic school to immediately reinstate John McAdams with no loss of tenure, compensation and benefits, and said he also deserved back pay.

Justice Daniel Kelly said McAdams’ suspension violated his contractually protected right of academic freedom, and called the blog post an “extramural comment” that had no bearing on his fitness to remain a professor.

McAdams, 72, had taught at Marquette since 1977, and received tenure in 1989. He plans to return to work.

The case has drawn attention from conservative groups opposed to giving schools a broad license to punish speech or expression they might dislike, and from private businesses seeking to ensure their ability to properly monitor employees’ behavior

McAdams was suspended in December 2014, a month after using his personal Marquette Warrior blog to criticize Cheryl Abbate, a graduate student philosophy instructor, and linking the post to her contact information and personal website.

She later received harassing emails that caused her to fear for her safety after local and national media learned about the blog post, in part from McAdams’ effort to promote it.

McAdams sued the Milwaukee-based university in May 2016 after refusing to apologize as a condition of ending his suspension.

Friday’s decision overturned a May 2017 dismissal of that lawsuit by the Milwaukee County Circuit Court.

Justice Ann Bradley dissented, saying neither academic freedom nor the U.S. Constitution’s First Amendment “saves McAdams from the consequences of his reckless actions.”

Marquette said it will comply with the decision, and that it did not change its commitment as a Catholic and Jesuit university to the safety and well-being of students.

The university said it would not have disciplined McAdams had he not named Abbate or provided her contact information.

“To us, it was always clear that the professor’s behavior crossed the line,” it said. “Marquette will work with its faculty to re-examine its policies, with the goal of providing every assurance possible that this never happens again.”

McAdams was represented by the conservative Wisconsin Institute for Law & Liberty.

“We’re elated,” his lawyer Rick Esenberg said in a phone interview. “Universities ought to be places of open inquiry, and allow people to speak without fear they will be sanctioned for it.”

The case is McAdams v Marquette University, Supreme Court of Wisconsin, No. 2018 WI 88.