NOC not submitted

So I applied a job in company A , so in the application of terms and condition it was mentioned that "Candidates in employment of Public Sector undertaking/govt.service will be required to produce No Objection Certificate at the time of document verification/uploading of documents failing which their candidature shall be rejected" , so during applying for the job I was no a part of any Public Sector undertaking/govt.service. Even while filling the online application , the question " are you working with any govt. organization/department or PSU - I answered as No. After 3 months I received an offer letter from company B as an temporary employee for 6months , and after 1 month i join in as an employee in company B. after 6 months company A does the verification of doc where I submitted all the documents were asked in the application but in that application it never said that i have to submit the NOC After a month company B emails me as an permanent employee. after 2 months i received an offer letter from company A , after 3 days i visited to company A for medical check-up where i had an oral conversation with HR , where i showed them the offer letter of company B , even after this HR didn't informed me about submitting the NOC After a week medical fitness form was submitted , on the same day i emailed the company A to extending my joining day for 45 days as I was working in company B. next day i submit my resignation letter in company B during this period i email the company A for joining after 10 days i recivedd obtain reliving letter from company B after 4 days Company A ask about why i didnt submitted my NOC , so i told them that i was unaware + HR also didnt informed me , i appologise for my behaviour please excuse me for my mistake , i can submit my NOC now after 9 days company A rejected my offer letter and now i am unemployed what should i do now and which judgements i can apply here