The Thunder were down one with about seven minutes left before scoring the next 11 points.
Oklahoma City is vying with several teams for the final playoff spots in the loaded Western Conference. The victory gives the Thunder a 2-1 win in the season series and snaps the Rockets’ 20-game home winning streak.
The Spurs (46-34) are tied with Oklahoma City and New Orleans for fifth in the Western Conference, a half-game back of idle Utah.
San Antonio can clinch a playoff spot with a victory over visiting Sacramento on Monday.
Portland (48-32) dropped its third consecutive game and missed out on an opportunity to clinch home-court advantage in the first round. Damian Lillard had 33 points for the Trail Blazers, and Evan Turner finished with 18.
NEW YORK (AP) – Eric Bledsoe had 22 points and 10 assists, and Milwaukee moved into a tie for sixth place in the Eastern Conference.
Khris Middleton also scored 22 points for the Bucks, who joined Miami with a 43-37 record. The Heat were blown out by the Knicks at Madison Square Garden a night earlier but the Bucks avoided the same fate despite playing without All-Star Giannis Antetokounmpo because of a sore right ankle.
Jabari Parker made his second start of the season in Antetokounmpo’s place and finished with 16 points and 12 rebounds.
Jarrett Jack scored 18 points and Kyle O’Quinn had 15 points, 16 rebounds and five assists for the Knicks, who beat Miami 122-98 on Friday but fell short in their hopes of beating another playoff-bound team.