All 11 sectors gained, led by materials and tech, the sector that helped power the S&P 500's rally the past five weeks.