Cruz stuns Republican establishment, beats Dewhurst