West Virginia has passed a new law aimed at protecting children from secondhand smoke.