If the homes are bank-owned, then the banks will eventually have to pay the fines, or the municipality can file suit to foreclose their lien.
If the properties are not bank-owned then the municipalities are screwed. The mortgages will have been recorded first, and will take precedence over...