Law expected to come into force on July 1 in most radical change to semi-autonomous territory since 1997 handover.