Lilly, Dodgers beat Giants 9-1