The measure is similar to bills passed in Utah and Arkansas, as politicians look to tighten online age restrictions.