S&P 500, Dow extend gains following Fed statement