Stults (6-13) allowed one run in five innings, struck out five and walked one. The Dodgers came into the game with a 20-10 record against left-handed opponents, but Stults did just enough against the team he pitched for from 2006-09.
Kevin Quackenbush pitched the ninth to earn his first major league save. He started a 1-2-3 putout to end the game.
Rymer Liriano went 2 for 3 with a walk and two runs scored, and Seth Smith went 2 for 5 for the Padres, who pounded out 11 hits in ending a two-game skid.
Kendrys Morales homered for Seattle, which was bidding to move 12 games over .500 for the first time since 2007. The Mariners lost for the third time in 10 games.
Hamels (7-6) snapped his string of seven straight starts going at least seven innings, but earned the win. He gave up three runs and nine hits with four strikeouts, one walk and two wild pitches.
Jonathan Papelbon struck out two in a scoreless ninth for his 30th save in 33 opportunities. Jake Diekman followed Hamels and struck out four in two scoreless frames and Ken Giles fanned the side in the scoreless eighth.
James Paxton (3-1) took the first loss of his career after the shortest outing in his 10th start, lasting just four innings while allowing four runs - one earned - on seven hits. He had been 6-0.
MILWAUKEE (AP) - Jose Bautista's three-run homer capped a five-run sixth inning, and Toronto outslugged Milwaukee, snapping the Brewers' five-game winning streak.
Bautista hit a 1-2 pitch from reliever Brandon Kintzler into the Brewers' bullpen in right field. The homer made a winner of R.A. Dickey (10-12), who gave up five runs in 5 2-3 choppy innings. Dickey left after Carlos Gomez's two-run homer in the bottom of the sixth made it 7-5.
Colby Rasmus also homered for Toronto, which outhit the NL Central leaders 15-10. The Blue Jays completed a 2-6 trip.
Jimmy Nelson (2-4) took the loss after allowing the first two runners to reach in the sixth.
Dexter Fowler had an RBI double, Jose Altuve added a run-scoring single, and the Astros (54-73) did more damage to New York's playoff chances with their fourth victory in five meetings this season. Houston won a series at Yankee Stadium for the first time in four tries.
The fourth-place Astros improved to 4-7 in the Bronx and will go for a three-game sweep Thursday.
Stephen Drew hit his first homer for New York, and Jacoby Ellsbury drove in a run with a bunt single. But the Yankees (63-61) lost for the seventh time in nine games and dropped five games out of a playoff spot.
Feldman (7-9) matched a career high by throwing 121 pitches in 6 2-3 innings. Jose Veras worked the ninth for his first save since Sept. 2, 2013, with Detroit.
Hamilton was in a 5-for-41 slump with 18 strikeouts but hit two sacrifice flies and then singled in the Angels' final run in the ninth inning.
The Angels' seventh win in eight games put them 1 1-2 games ahead of Oakland but it was costly. Right-handed starter Garrett Richards sustained a patellar injury in his left knee while running to cover first base in the second inning.
Richards, 7-2 in his previous 11 starts, left after 1 2-3 innings with a 2-0 deficit. Boston made it 3-0 on David Ortiz's homer in the third off winning pitcher Cory Rasmus (3-1).
That gave Ortiz his eighth 30-homer season with Boston, tying Ted Williams' club record. Ortiz went 4 for 4 and is 8 for 10 in the series with four walks.
Clay Buchholz (5-8) took a 3-1 lead into the fifth but let the first six batters reach base. That sent Boston toward its fourth straight loss.
MINNEAPOLIS (AP) - Rookie T.J. House pitched shutout ball into the sixth inning, and Mike Aviles had three hits and two RBIs to lift Cleveland over Minnesota.
House (2-3) walked three and struck out five, and scattered four hits over 5 1/3 innings. Four relievers combined to blank the Twins the rest of the way, running Minnesota's scoreless streak to 17 innings.
Another rookie, designated hitter Zach Walters, hit his sixth home run of the year in the second inning to put Cleveland on top 1-0. It was Walters' third home run in eight games with the Indians since he was acquired from Washington.
The home run was the 17th allowed in 20 starts by Ricky Nolasco (5-9), who gave up four runs and eight hits in 6 2-3 innings.
CHICAGO (AP) - Jake Peavy pitched seven solid innings in his fifth start with San Francisco, and the Giants rolled past the Chicago Cubs, hours after they won a protest regarding a rain-shortened loss from the night before.
Peavy (2-3) has won two straight after losing his first three starts with San Francisco following a July 26 trade from Boston where he was 1-9.
Struggling starter Edwin Jackson (6-14) was hit hard in just 2 2-3 innings, his shortest outing of the season. He allowed seven runs, eight hits and two walks. Jackson has lost seven of eight decisions.
Before the game, the Giants won their protest filed with Major League Baseball over Tuesday night's rain-shortened loss that was called in the fifth inning. MLB said this was the first successful protest since 1986.
The suspended game will be completed on Thursday before the regularly scheduled game between the teams.
Reds starter Johnny Cueto (15-7) was off-kilter from the get-go and missed a chance to become the majors' first 16-game winner. He allowed five runs in five innings, and his seven-game winning streak ended.
The Cardinals have won eight of nine and swept the Reds at home for the first time since Sept. 26-28, 2008. Cincinnati has lost 10 of 12, with Cueto getting the two wins.
Jon Jay had three hits, scored twice and was plunked by a pitch for the sixth time in six games for St. Louis. He is batting .514 (18 for 35) during a 12-game hitting streak, and has been hit by a pitch a majors-leading 16 times.
Lynn (14-8) gave up four singles and was set to pitch the eighth leading 5-0 before a 58-minute rain delay ended his outing. The Reds scored three times in the ninth, and Trevor Rosenthal got two outs for his 37th save in 42 chances.