A federal judge has granted final approval of a class action settlement estimated to be worth more than $22 million in a suit brought by landowners who claimed that their natural gas leases imposed unfair royalty calculations.