A US law supporting Hong Kong protesters could complicate US-China talks aimed at striking a trade deal.