The win allowed the Yankees to move on to the American League Championship Series.