France enacts ban on oil, gas licensing