The government of the United Kingdom faces weeks of uncertainty as the Labour party grapples with internal turmoil.