New Orleans — A federal judge in New Orleans granted final approval Monday to an estimated $20 billion settlement regarding the 2010 BP oil spill in the Gulf of Mexico, resolving years of litigation over the worst offshore spill in the nation’s history.