Shaw's three-run blast topped the Cardinals in 10 innings