If the Greater Manchester mayor goes on to the win the by-election, he would be able to launch a leadership challenge against the PM.