City to pay legal costs that could approach $50,000