Nadine Dorries, a former minister and Tory MP, resigned from the Commons after accusing Rishi Sunak of "demeaning his office" by criticizing her.