The legislation, which is due to take effect in 2027, comes as other states also consider self-checkout restrictions.