Wainwright wins 12th in Cards' 9-5 win over Astros