Donald Trump finds ally in delegate selection system, much to G.O.P.’s chagrin