Millions of motorists are in line for payouts after being mis-sold loans to buy new and used cars.