France's General Assembly has voted in favour of a tax hike on added sugar soft drinks and a lesser rise on drinks containing sweeteners.