As I discussed in this answer, Mahabharat was not a battle of Dharma and Adharma. Both sides had good and bad deeds. If it was a sin to remove a woman's clothes, then it was also a sin to stake his own wife.
Book 18 chapter 3
12 शुभानाम अशुभानां च दवौ राशीपुरुषर्षभ
यः पूर्वं सुकृतं भुङ्क्ते पश्चान निरयम एति सः
पूर्वं नरकभाग्यस तु पश्चात ...