The victory snapped a two-game skid for the Niners (5-4) and marked the first home loss for the Saints (4-5) in more than a season.