Company is not giving reliving letter and experience letter

I am working in X company since 2.4 years and based on my performance they have offered me Commitment for 3 years on email and asked me to read the terms and conditions. To break the commitment the condition is, "you need to pay the amount you have taken during commitment duration". So I have accepted the commitment on email and after 2 months I realized due to company work culture and my family and personal issues I am not able to continue my work for next 3 years. Hence I have resigned from my position. After 10 days they have accepted my resignation and given last working day and allow me to serve notice period. When 10 days left to complete notice period, Hr send an email and says , "your letters will mentioned that you has accepted commitment for 3 years and he broke it for his personal issues". So I just suggest them to mention like " he has accepted commitment for 3 years and he broke it for personal issues as per commitment exit policy he has paid the amount and completed all formalities" after that Hr add CEO in email and CEO said that "We are not going to provide any letters". I have ask them why then they replied that , No change in our decision. Even I have serve full notice period and handover my all assets and KT still they refusing me to give reliving letter and experience letter. I have send them legal notice from lawyer but still they have not replied yet.