Honestly, this was probably the correct ruling. Much as it sucks, being a dick in the town council hall is pretty much the definition of the first amendment. That’s specifically what it protects.
That said, the government is under no obligation to give people a platform. It has to give equal platform to all, but that amount can be zero.
This has happened in a few of the towns in my region here in Canada. The Trucker Convoy types show up and disrupt everything by ranting about drag story times and such. It was getting bad enough that some of these places are severely limiting public comment periods to half or less of what they were. Hopefully it’s temporary because it would be unfortunate to lose this important interactive element of local government, but there’s no value in letting these idiots shout everyone down. They are blocking normal folks who have real questions or concerns about town business.