Cards score 4 in 9th, beat Nats 9-7