China law to spur port investment