A bill compelling the United States to support pro-democracy activists in Hong Kong could arrive on President Trump’s desk as soon as Thursday morning, potentially complicating the administration’s talks with China to end the trade war.

The bill, passed by the Senate on Tuesday, would require the government to impose sanctions on Chinese officials responsible for human rights abuses in the territory. On Wednesday, the House passed the Senate version 417-1, sending it to the White House.

If signed into law by Mr. Trump, the bill will also require the State Department to annually review the special autonomous status it grants Hong Kong in trade considerations. That status is separate from the relationship with mainland China, and a revocation of the status would mean less favorable trade conditions between the United States and Hong Kong.

The Senate passed the bill, the Hong Kong Human Rights and Democracy Act, by unanimous consent. The House had previously passed its own version unanimously, but gave assent to the Senate version in order to expedite the legislation. On the House floor on Wednesday, Speaker Nancy Pelosi said, “If America does not speak out for human rights in China because of commercial interests, we lose all moral authority to speak out on human rights elsewhere.”