Investment in limited liability companies

My question is about legitimacy of limited liability companies. Since Islam gives us clear guidance that you have to payback each and every penny of your debt to creditors but in limited liability companies, debt is payback equal to asset of the company at the time of liquidation then how and on what Islamic scholars declare limited liability companies as shariah compliant. Please guide me in this regard in light of Quran and Sunnah. I will be grateful.