U.S. stock indexes are closing their best week in two months with a flourish on Friday. The S&P 500 was 1.1% higher in late trading and on track for its first winning week in the last three.