The complaint could see Tesla lose its license to sell cars in California. Meanwhile, federal authorities are investigat