S&P affirms U.S. rating following presidential election