Dodgers recover, beat Giants 9-6 on Betts’ 3-run HR in 8th