Court ruling affirms free speech rights