"That's the second one he's had for me this year," Hudson said of Ozuna's assist to the plate. "He's looking really good. He threw a perfect one in there to save a run."
St. Louis maintained a two-game NL Central lead over the second-place Chicago Cubs, who closed within a half-game of the Nationals for the top NL wild card
Nationals manager Dave Martinez missed the game following a heart procedure in Washington, and bench coach Chip Hale was in charge of the dugout.
"I'm sure he'll give us a call after the game if he's up," Hale said. "I know he's been through a battery of tests. Hopefully he's feeling good."
"I was in the same division as him and I faced him a lot," Ozuna said. "I know this guy. I know what I can handle to get a good at-bat."
Ozuna has faced Strasburg 41 times and has 12 hits, including three home runs and six RBI.
"I figured based on his numbers that Ozuna would have a good night, but I feel that way every night about him," St. Louis manager Mike Shildt said. "It was a nice, nice job by him all the way around tonight. I'm pleased with the homer and two-run but the throw, he's put a lot of time, effort and energy in his arm. He is sincere about being a complete player."
Washington tied the score 2-2 on Victor Robles' RBI single in the fourth and Anthony Rendon's 34th homer leading off the sixth. Ozuna charged on Robles' hit and made a one-hop throw to catcher Yadier Molina, who tagged out Asdrubal Cabrera trying to score from second.
"I'm getting my rhythm back," Ozuna said. "I'm almost there."
Sean Doolittle (6-5) walked Fowler with one out in the seventh, Hunter Strickland walked Paul Goldschmidt with two outs and Ozuna doubled just inside the left-field line, just the second hit in 11 at-bats for the Cardinals with runners in scoring position.
"He just missed with his pitch," Hale said. "He just sort of pulled it across the plate, and Ozuna did a nice job."
Hudson (16-7) won for the sixth time in seven starts, giving up two runs and five hits in seven innings.
"I didn't have very much tonight," Hudson said. "The ball was moving a lot, but I didn't have the best command. I had to battle with what I had."
John Brebbia, Andrew Miller and Martinez followed with perfect relief. One day after he was released from a hospital following respiratory problems caused by asthma and allergies, Martinez needed just two pitches to retired Ryan Zimmerman on a flyout for his 20th save in 23 chances.
"I told them I had two innings in me because right now, I feel good. I needed just two pitches," Martinez said. "I'm focused to compete. I was happy to get out there. They need me. I'm ready for tomorrow and the next day."
Strasburg gave up two runs, three hits and four walks in five innings, his shortest outing since Aug. 3. He is 3-2 in his last nine outings after winning seven straight starts in late June and July, leaving his record at 17-6.
Miller tied his season best with his 27th hold.
Nationals: LHP Patrick Corbin (12-7, 3.20) is 1-2 with a 4.89 ERA against the Cardinals. His lone win came in 2016 when he pitched for Arizona.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Baseball's quietest man will be the reason for many Hall of Fame speeches
Last winter's surprise selection of Harold Baines could blow the doors to Cooperstown wide open Sunday night -- and beyond.
Royals sign former All-Star Trevor Rosenthal to minor league deal
The Kansas City Royals signed former All-Star reliever Trevor Rosenthal to a $2 million minor league contract that includes an invitation to big league spring training and up to $2.25 million in bonuses if he makes the major league roster.
Yankees GM rappels building, gets fan's message on Gerrit Cole
Brian Cashman saw a message taped to a 10th-floor window while prepping for a festival in Connecticut. "Please sign Gerrit Cole," it said. The GM's response: "I'm open to do clearly whatever, as always, is important for the Yankees."
Rays' Blake Snell strongly reacts to Tommy Pham trade on Twitch
Rays pitcher Blake Snell apologized for his reaction -- captured during a livestream on Twitch -- to news that teammate Tommy Pham was traded to San Diego.
Source: Nationals agree to deal with World Series hero Howie Kendrick
Howie Kendrick, who capped the Nationals' improbable run to their first World Series title last season with a Game 7 home run, has reached an agreement on a one-year, $6.25 million deal to return to Washington, a source told ESPN's Jeff Passan on Friday.
Win-now Padres pay steep price for Tommy Pham
San Diego took another step toward contending in 2020 by adding the outfielder but shipped one of its best prospects to Tampa Bay in the process.