Legislation follows Nevada and Oregon standoffs.