A federal judge has approved a $69 million settlement of a class action over allegedly leaky sunroofs in Volkswagen and Audi vehicles, nearly two years after the original deal was struck.

During the past several months, the parties amended what objectors claimed — and an appeals court agreed — was an unfair deal because it divided the class in two and gave one group priority access to an $8 million reimbursement fund.