Cardinals take both split-squad games, beating Nationals and Astros