Embattled UK prime minister set for talks with one of the main contenders for his job after a day of drama at Westminster