Judge says county commissioners violated state law