The French government has voted to remove some 8000 vending machines selling chocolate, sweets and carbonated soft drinks from schools.