It's one of the first major legal decisions about driver assistance technology that has gone against Tesla.