A judge said the city's rule restricting books for minors violates state law. The City Council voted to appeal.