France passes law to ban all oil and gas production by 2040