China officially has the broad power to quash unrest in Hong Kong, as the country’s legislature on Thursday nearly unanimously approved a plan to suppress subversion, secession, terrorism and seemingly any acts that might threaten national security in the semiautonomous city.