Hong Kong protests dealt China’s all-powerful Xi Jinping an embarrassing blow that could sting for a while