He offended. He's now done entirely the proper thing and resigned. However, if this extremely able and talented man doesn't return to government at some point, the nation will be the loser. A quick, clean resignation means a shorter spell in the sin bin.
That's all. Carry on.