Beijing has enacted sweeping laws since US president-elect’s first term that would allow it to retaliate if threatened