The massive victory of Hamas in the Palestinian parliamentary elections stunned much of the world, but the outcome should not have been so surprising. Indeed, Hamas’s moment of triumph is part of a growing regional pattern.