Tesla weighs on Nasdaq but the index ends with a gain, while Dow industrials climb more than 400 points, or 1.2%.