I would have raised/folded preflop.

As played you have to fear that pair on nines on the board and you played the river fine I think. Had you raised preflop and he called, you'd have reason to believe that he doesn't have trip nines.