The state could issue fines or take legal action against companies who violate the proposed law.