The laws will shape the future of Hong Kong, raising questions about the autonomy of a city whose status is a underpinned by its distinction from the mainland.