The Transport Secretary has been outspoken about Tory MPs resigning for breaking the rules - but now the shoe is on the other foot.