Donald J. Trump loomed large over the campaign trail, even though he was among the few G.O.P. contenders who stayed away from it.