Dow, S&P end Monday higher, Nasdaq down with tech woes