Lawmakers who opposed the bill countered that it was “unsafe and unworkable” amid concerns the proposed law had many flaws.