S&P 500, Nasdaq edge higher as investors cling to stimulus hopes