The tariff hikes approved by President Trump have infuriated Beijing and escalated the U.S.-China trade war, but there has been at least one beneficiary: the U.S. Treasury.

As of June 30, the U.S. government has collected $63 billion in tariffs over the preceding 12 months, according to the latest Treasury data. What’s more, the tariff bounty is on the rise.

The...