GM sold drivers’ names, locations and behavior to data brokers from 2020 through 2024, in violation of state law, the California Department of Justice said.