House Speaker Nancy Pelosi’s impeachment efforts, designed to hobble Trump for the 2020 election, have turned into a series of unexpected boons for the president and his party.