A Manhattan federal judge Tuesday approved a bankruptcy plan for Gawker that includes a $31 million payment to Hulk Hogan, $1.5 million to settle four other lawsuits, and protection for former writers against future legal claims.

“The company got murdered,” said ex-Gawker reporter Jordan Sargent. “That we have these protections is a moderate victory.”

The plan indemnifies Gawker’s former writers against potential lawsuits over articles published before the company was sold to Univision in August for $135 million.

Hogan forced Gawker into bankruptcy in June when he tried to collect on a $140 million award from a Florida jury after the site posted a video of him having sex with his then-best friend’s wife.

The March invasion-of-privacy verdict included $55 million in economic damages, $60 million for emotional distress and $25 million in punitive damages.

Lawyer Gregg Galardi, who represents the bankrupt Web site, said the $31 million Hogan settlement “was very favorable” because it’s only a fraction of the $140 million award. Hogan is expected to receive the money by the end of the year.

“While the company believes it could still prevail on appeal,” that could cost up to $10 million in legal fees, Galardi said.

Gawker is also paying to settle four other lawsuits.

Actress Fran Drescher’s husband, Shiva Ayyadurai, will get $750,000. His $35 million libel suit against Gawker is related to claims that he invented email.

A freelance reporter named Ashley Terrill brokered a $500,000 deal to put to rest her $10 million defamation case over an article about the dating app Tinder.

Former MLB pitcher Mitch Williams scored a $125,000 payout to settle another defamation suit.

And Chicago attorney Meanith Huon reached a $100,000 agreement for his $100 million defamation claim.