Trump and allied Republicans aim to cast aside the party’s long-held antipathy toward unions and lure more voters.