S&P, Nasdaq post best week since July ahead of Fed meeting