> Who enforces it then?
The executive can enforce judicial orders. This is civics 101.
> The local law banning it was already equally as valid as a court order
The ban is an ex post facto law. Rights holders to property have a legitimate reason to defend those rights across policy changes.
An ordinance banning ALPRs that impacts previously-installed Flock cameras is not an ex post facto law. But a municipal ban on private Flock cameras poses constitutional problems --- and not because of post facto or takings. Generally, the ballgame here is over publicly-owned cameras, so none of this is really apposite.