They banned it to have reality comply with Brazilian electoral law which is written so that every candidate has the same amount of airtime.
It is not the job of the judiciary to determine whether a law should or shouldn't exist, but to make sure all laws are correctly enforced. Remembering this fact isn't optional.
Said differently, arguments about such decisions should revolve around whether the law says what the courts say it does or whether it was applied correctly—not whether the law should exist.