Lawmakers in Hong Kong have passed new national security legislation that carries severe punishment for a broad range of offenses, including life imprisonment for acts deemed to be insurrection.