Relieving letter and final settlement suspension

Hi Experts, I was working in a company A for 7 yrs and recently changed my job and joined another company B because company A was paying half salary post pandemic and I was not able to survive with that. Now I am working in company B. Problem is my previous company A is not giving me a relieving letter because company B has signed a no-pouch agreement with company A which I was not aware of till I asked for relieving letter from company A. My background check email from company B went to company A and they got to know that I am working on company B and company A sent email to company B asking them to terminate me from job and they have suspended my relieving letter and also my final settlement. As company A know that I am working in company B, they are now asking me to sign no-pouch agreement for company B which I denied because I have already joined company B. I couldn't serve notice period and took early release from company A and they deducted my notice period days from final settlement and sent a final settlement letter indicating same and asked me to sign. Now they are saying they are suspending final settlement as well. My current company B is not responding to previous company A and looks like since they broke the no-pouch agreement with company A and they might terminate me. Kindly suggest what are my options here to get relieving letter and final settlement and also save my job.