Cardinals clinch playoffs but lose to Brewers 6-4