NEW YORK (AP) – Aaron Judge hit his 60th home run and Giancarlo Stanton followed minutes later with a game-ending grand slam, completing the New York Yankees’ stunning five-run, ninth-inning rally to beat the Pittsburgh Pirates 9-8 on Tuesday night. Judge moved within one of Roger Maris’ American League record when he turned on a sinker from right-hander Wil Crowe (5-10) and drove it 430 feet into the left-field bleachers, pulling New York within 8-5. Judge matched the 60 home runs Babe Ruth hit for the 1927 Yankees to set a big league record that stood for 37 years. Stanton, mired in a 9-for-72 slump, lined a slam off Crowe to make a winner of Aroldis Chapman (3-3) and set off a raucous celebration at Yankee Stadium. Harrison Bader had a pair of go-ahead singles and drove in three runs in his debut for the Yankees. BLUE JAYS 18, PHILLIES 11 PHILADELPHIA (AP) – Matt Chapman hit a three-run homer in the first inning, Jackie Bradley Jr. added a three-run shot in the ninth and Toronto roughed up Philadelphia with 21 hits. The Blue Jays have won five of seven and have a firm grip on the top AL wild-card spot. The Phillies lost their fifth straight. Kyle Schwarber hit his NL-best 40th homer of the season for the Phillies in the eighth, a three-run shot that made it 14-10. J.T. Realmuto hit his 20th homer and went 5 for 5 for the Phillies, driving in two runs and scoring twice. Toronto had 10 extra-base hits and scored in every inning but the fourth. Zach Pop (3-0) helped the Blue Jays escape the fifth inning with a 7-5 lead. Kyle Gibson (10-7) got battered around for seven runs and 12 hits over five innings. BRAVES 3, NATIONALS 2 ATLANTA (AP) – Travis d’Arnaud broke a scoreless tie with a two-run homer in the fourth inning, Dansby Swanson went deep in the eighth, and Atlanta beat Washington, clinching a playoff berth not long afterward when Milwaukee lost to the New York Mets. The Braves have won 10 straight games at home, outscoring opponents 47-15 over this stretch. Matt Olson singled with out in the fourth before d’Arnaud hit his 18th homer, a 422-foot shot off Erasmo RamÃrez (4-2) that made it 2-0. Charlie Morton (8-6) allowed one run and three hits with three walks and nine strikeouts in 5 1/3 innings. Kenley Jansen faced seven batters in the ninth, allowing one run before securing his NL-leading 36th save in 43 chances. METS 7, BREWERS 5 MILWAUKEE (AP) – Francisco Lindor hit a two-out grand slam in the seventh inning and New York rallied from a four-run deficit to beat Milwaukee. Pete Alonso hit his second three-run homer in as many nights as the Mets maintained their one-game lead in the NL East over Atlanta and dealt a blow to the Brewers’ wild-card hopes. The Mets won with just four hits. Milwaukee’s loss clinched a playoff spot for Atlanta. Lindor’s grand slam off Taylor Rodgers (4-8) traveled an estimated 413 feet. Joely RodrÃguez (2-4) earned the win with one inning of shutout relief. Edwin DÃaz got four outs for his 31st save. Willy Adames went 4 for 5 with two RBIs and a pair of doubles for the Brewers. ASTROS 5, RAYS 0 ST. PETERSBURG, Fla. (AP) – Tampa Bay ace Shane McClanahan was pulled in the fifth inning with neck tightness during a loss to Houston. McClanahan (12-6) was making his second start after returning from the 15-day injured list due to a left shoulder impingement. He allowed five runs for only the second time this season. Jeremy PeÃ±a hit a three-run homer, Jose Altuve scored three runs and the Astros won for the ninth time in 10 games. Houston starter Cristian Javier (10-9) gave up one hit and won his fourth straight start, striking out six in five innings.