State lawmakers overrode Gov. Andy Beshear’s veto of the legislation.