General Motors will pay $220 million to settle allegations by the attorneys general of 35 states and the District of Columbia that it sold drivers' behavior and location data from its Smart Driver program to brokers, who sold it to insurers that used it to set and sometimes increase rates.