S&P 500 caps best quarter in 6 years as debate shifts to H2