Health experts have welcomed a law which could help reduce the number of people who take up smoking, but others are concerned it goes too far.