The legislation only applies to grocery stores and still needs to be signed by the governor to become law.