Philip Rivers bailed the Chargers out of trouble with several third-down throws and hit Antonio Gates for a go-ahead touchdown in the fourth quarter, lifting San Diego to a 20-17 victory over the Dallas Cowboys that continued December trends for both clubs.