The new law would override any existing Hong Kong laws that may conflict with it, Xinhua news agency said.