The resignation comes days after Theresa May secured the cabinet’s backing for her Brexit plan.