The Dow Jones outperformed the Nasdaq on a rocky day for tech stocks after Nancy Pelosi called stimulus aid "imminent."