Donald Trump’s pick for US secretary of state previously had a key role in getting bills against Hong Kong passed.