Rooftops on new buildings built in commercial zones in France must either be partially covered in plants or solar panels, under a law approved on Thursday.