Wall Street closed mixed, but the S&P 500 and Nasdaq posted a second straight quarterly gain. Softer-than-expected inflation eased fears of an October Fed rate hike, though price pressures remain elevated.