Samardzija pitches Cubs past Cardinals 4-2