How the S&P 500 performs after the central bank lowers rates depends on where the economy is headed next.