The Republican reckoning tests a party infrastructure reshaped around President Trump since his insurgent rise in 2015 transformed the GOP.