The legislation is the most sweeping change to the political landscape of Hong Kong since it was handed back to China by the UK in 1997.