The Nasdaq has climbed and the S&P 500 dipped, but both indices notched their second straight ‌quarterly gains, as a softer-than-anticipated inflation reading cooled expectations that Federal Reserve policy makers will hike rates in October.