Children aged 17 or younger will face a lifelong ban on buying cigarettes, as the Tobacco and Vapes Bill clears Parliament.