Altuve hit a leadoff drive in the first inning, and Correa put Houston ahead to stay with a tiebreaking solo shot off Bauer with two outs in the sixth. Díaz tacked on a two-run shot during the Astros’ three-run seventh.
Los Angeles had won eight in a row.
Bauer (5-3) permitted two runs and four hits in six innings. The 2020 NL Cy Young Award winner tied a season high with four walks and struck out a season-low three.
Bauer was 8-0 with a 2.90 ERA in nine career starts against Houston coming into the day.
Sheldon Neuse homered for the Dodgers, and Max Muncy had a run-scoring single.
Los Angeles put runners at first and second with two outs in the ninth, but Bryan Abreu struck out Albert Pujols for his first save.
Luis Garcia (3-3) struck out seven in six innings in his third straight win. He allowed one run and two hits.
The Astros salvaged a split of the two-game set in a rematch of the 2017 World Series — a title Houston won over Los Angeles that became tainted when it was revealed the Astros illicitly stole signs en route to the championship.
There were plenty of LA fans in the crowd of 30,939, but they were decidedly less vocal and rowdy than they were when Clayton Kershaw pitched the Dodgers to a 9-2 victory on Tuesday.
When Díaz homered in the seventh, most of the orange-clad crowd stood up and cheered loudly, drowning out a smattering of boos from Dodgers fans.
A night after his 17-game hitting streak ended, Altuve connected for his third leadoff homer this season. It was Altuve’s 139th career homer, tying him with Bob Watson for eighth place in franchise history.
He added an RBI single in the seventh to give him 1,660 career hits, moving him past Cesar Cedeño (1,659) for fourth-most in team history.
Yoshi Tsutsugo singled with one out in the third before Mookie Betts reached on an error by Garcia. The Dodgers tied it when Muncy lined an RBI single into right field.
Yuli Gurriel singled with one out in the sixth inning but was thrown out trying to steal second base. Correa followed with his 360-foot shot to the seats in left field.
Dodgers: CF Cody Bellinger (left leg) was feeling good after his fourth minor league rehabilitation game this week and manager Dave Roberts said he could return as soon as Saturday. … Roberts said utility player Zach McKinstry, out since April 22 with an oblique strain, could come off the injured list this weekend.
Astros: RHP Lance McCullers Jr. was placed on the 10-day injured list, retroactive to Sunday, with soreness in his right shoulder. … LHP Framber Valdez, who has been out all season after breaking his left index finger in spring training, will come off the injured list to start Friday night. … RHP Jake Odorizzi, who has been out since April 26 with a strained muscle in his right arm, is expected to come off the injured list to start Saturday.
Dodgers: RHP Walker Buehler (3-0, 2.78 ERA), who hasn’t lost since Sept. 21, 2019, is scheduled to start for LA on Thursday in the opener of a four-game series against San Francisco.
Astros: Houston is off on Thursday before starting a three-game interleague series with the San Diego Padres on Friday night with Valdez on the mound.
More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports