The Boston Red Sox clinched a playoff berth on the regular season’s final day and will host the New York Yankees in the AL wild-card game after coming back to beat the Washington Nationals 7-5 on a tiebreaking two-run homer by Rafael Devers in the ninth inning Sunday.