A US judge has given final approval to the settlement of a class action lawsuit against Toyota by plaintiffs who claimed design defects caused some of the company's vehicles to accelerate without warning.