Kailash Gahlot resigned as Delhi transport minister and quit the AAP, saying that the party faces “grave challenges”.