Mexican lawmakers on Wednesday gave final approval to an overhaul of the state-run energy sector aimed at luring billions of dollars in new investments by foreign and private oil companies.