The prime minister of Britain dramatically announced she would quit if her MPs finally backed her withdrawal agreement