Voters in Thailand overwhelmingly backed opposition parties promising to bring change — delivering a stunning rebuke to the military-backed government that has led them for nearly a decade.