A judge ruled that Tesla's marketing confused customers into thinking the cars could drive themselves.