S&P, Nasdaq close higher as stimulus talks in spotlight