State board ruling on 'dark-store theory' could cost counties millions