S&P 500 Posts Second Week of Gains