U.S. stocks end a tad higher as Tesla rallies