Brazilian lawmakers have approved legislation that will give the government more control over developing offshore oil fields .