China eases foreign investment curbs with new law