A Missouri judge on Tuesday ruled that theĀ Kansas City Council violated state law when itĀ approved plans to reallocate millions of dollars in funds away from the city's police department.