Tuesday’s ruling called the state’s attempt to limit classroom discussion “a breathtaking assertion of power to ban unpopular ideas from public discourse.”