Stock indexes closed higher on Wall Street, adding to the all-time highs they set a day earlier. The S&P 500 added 0.2% Friday.