Clayton Kershaw pitched eight strong innings as the Dodgers beat the Washington Nationals 4-1 and remain two games up on the Giants in the NL West.