So rephrasing the question, "what exactly stops a city from enacting a 100 year retroactive income tax on those in the 1%?"
Those with the most to lose are the least likely to burn down city hall.
They will have no funds for their re-election campaign. In an extreme case they may die of a mysterious stroke or have an affair suddenly made public.
The idea that something can be passed retroactively in any form is insane.