Decision by former prime minister will trigger by-election in his London seat, with Greens likely to challenge ruling Labour Party