WASHINGTON — President Trump plans to withdraw from a 144-year-old postal treaty that has allowed Chinese companies to ship small packages to the United States at a steeply discounted rate, undercutting American competitors and flooding the market with cheap consumer goods.