A New Jersey federal judge on Wednesday gave final approval to a settlement in a class action against Subaru of America Inc. over an alleged engine defect that caused several vehicle models to waste motor oil, saying the cost reimbursements and other terms were fair and reasonable.

Chief U.S. District Judge Jerome Simandle gave his blessing to the deal, agreeing to certify the class of consumers for settlement purposes to put to bed allegations that Subaru of America Inc. and its automobile manufacturer Fuji Heavy Industries Ltd. hid an engine defect in certain model 2011 to 2014 vehicles, including the Forester, Outback and Impreza, that caused the cars to suck up excessive amounts of oil.

Subaru and Fuji are represented by Neal D. Walters, Michael R. Carroll and Casey G. Watkins of Ballard Spahr LLP.