Corbyn out on a limb as Tories win historic by-election