> city might have to pay, but this is basically the people paying themselves - tax payers pay the tax payers
Courts can also order specific performance.
> If you sue the city and win, the judge orders the city to follow the law, and they still don't, do elected officials go to jail or something?
Courts happily hold municipalities in contempt. The community can then figure out how to hold their electeds responsible.