Two big car companies will pay out millions to owners after they were accused of selling cars that were easy to steal.