Hyundai and Kia agreed to pay more than $200 million to owners of about 9 million vehicles that lack a crucial anti-theft device as part of a class-action lawsuit.