Three senate Democrats and one Republican had sponsored the law, which ended up passing 24-16 in that chamber of the Virginia General Assembly.