But it took an "extreme step" in shutting portions of public sidewalks to protesters exercising their free speech rights, he wrote in a decision that suggested the state could pursue the same goals in other ways.