Gregorius, who has been the Yankees’ most fearsome hitter this year, drove in three runs and added his eighth home run of the season.