The strong figures suggest Tesla’s mainstay auto business is regaining momentum after two straight annual sales declines.