A New Hampshire congressional primary was the latest test of Trump's endorsement power.