Regimes fell in Syria and Bangladesh, marking unexpected defeats against a rising tide of authoritarianism in the world.