France has banned domestic short-haul flights as part of a climate law aiming to cut carbon emissions.