Wall Street closed out its latest winning week with another milestone, the S&P 500’s first close above 5,000.