A chain of restaurants has been saved - after the company’s shareholders stepped in to buy the firm out of administration.