Hyundai and Kia overstated the gas mileage on most of their models from the past three years in an embarrassing blunder that could bring sanctions from the U.S. government and millions of dollars in payments to car owners.