SANTA CLARA, Calif. -- Christian McCaffrey scored on a go-ahead 2-yard run in the fourth quarter and San Francisco's defense did the rest, sending the 49ers to their second straight NFC title game with a 19-12 victory over the Dallas Cowboys on Sunday.