Yao had 30, 16 rebounds as Rockets beat Warriors