Opponents raised concern about voter fraud, but advocates portrayed the bill as a public safety measure. Next up: Gov. Phil Murphy's signature.