The former Greater Manchester mayor looks almost certain to become the next Labour leader and prime minister