A legal dispute between Valve and Vivendi nearly tanked the former until the company was saved by an unlikely hero.