Venezuela's legislature advanced a bill on Thursday to loosen state control over the country's vast oil sector, the first major overhaul since parts of the industry were nationalized in 2007.