LOUIS -- Randy Wolf pitched three-hit ball into the ninth inning and the Milwaukee Brewers beat the slumping St. Louis Cardinals 3-2 on Wednesday , handing 17-game winner Adam Wainwright his first home loss of the season .