S&P 500, Dow rise before Fed; tech stocks pull down Nasdaq