Defendants include politicians and activists who had hoped to win control of legislature, a plan Beijing found subversive.