Cards win rubber match over Cubs 6-4