Theresa May defeats Tory coup