The U.S. stock market broadened its rally this week, with all S&P 500 sectors booking weekly gains, as investors appeared relieved by interest rates in the bond market reversing some of their recent startling climb.