Beijing is preparing a new law that would add to its ability to punish foreign companies and individuals deemed to harm Chinese interests