Local authorities have won a court battle to prevent their statue from being removed under a “decommunisation” law.