The by-election victory paves the way for Burnham to challenge Keir Starmer’s leadership.