The bill is the latest in a wave of identical legislation being introduced in several states and at the federal level.