About two-dozen class actions have alleged that General Motors Co. gathered data about drivers without their consent and then sent it to insurance companies, which raised their rates.