Dow, S&P post new records to recover from negative territory