Alex Rodriguez's ninth-inning homer was upheld in Major League Baseball's first use of video replay as the New York Yankees beat the division rival Tampa Bay Rays 8-4 on Wednesday. Rodriguez, who went 3-for-4 and drove in four runs, hit a towering two-run shot off Troy Percival that third base umpire Brian Runge immediately ruled a homer when it bounced off the catwalk behind the foul pole in left field. Rays catcher Dioner Navarro protested, bringing manager Joe Maddon out of the dugout. After convening, the umpires reviewed the tap and upheld the call. Rodriguez had a run-scoring double in the third off Edwin Jackson (11-9) and an RBI single in the fourth. The home run was his 31st of the season and 549th of his career, breaking a tie for 12th place with Mike Schmidt on the MLB all-time list. Red Sox 5, Orioles 4: At Boston, Baltimore reliever Jim Miller threw away a bunt for a game-ending error, handing Boston a comeback win from a four-run deficit. Miller threw past third baseman Aubrey Huff and down the left-field line, allowing Boston's Alex Cora to jog in for the winning run. Dustin Pedroia homered in the seventh inning to begin Boston's rally from a four-run deficit. Pedroia went 3-for-4 and raised his AL-leading average to .333. He is 21-for-34 (.618) in his last eight games. Baltimore, which has lost six straight and 11 of 12, took a 4-0 lead in the fourth against Daisuke Matsuzaka. In other games it was: White Sox 4, Indians 2; Rangers 1, Mariners 0; Blue Jays 5, Twins 4, 11 innings; Tigers 9, Angels 6. Astros down Cubs again In Chicago, Randy Wolf pitched a six-hitter for his eighth career shutout and the Houston Astros won their eighth straight 4-0 over the Chicago Cubs, who lost their season-high fifth in a row on Wednesday. The Astros completed a three-game sweep at Wrigley Field behind the pitching of Wolf and some good defense. Ty Wigginton hit his 22nd homer of the season and made a great throw from left field to cut down a potential Chicago run in the fifth inning. It is Houston's second eight-game winning streak in less than a month, matching one from Aug. 7-14. Diamondbacks 4, Cardinals 3: At Phoenix, Adam Dunn doubled home the winning run in the ninth inning for Arizona. For the second time in three games, the Diamondbacks rallied against the Cardinals' tattered bullpen, whose 29 losses are most in the majors. Stephen Drew tripled to lead off the ninth against Chris Perez (2-2). One out later, Conor Jackson singled through the drawn-in infield to tie it. Dunn followed with a shot to the right field corner. Mets 9, Brewers 2: At Milwaukee, Ryan Church hit a grand slam and Brian Schneider added a homer in New York's six-run first inning and the Mets completed the three-game sweep. Elsewhere it was: Giants 9, Rockies 2; Marlins 5, Braves 3; Nationals 9, Phillies 7; Pirates 6, Reds 5; Dodgers 6, Padres 4.