The plan is to reduce the company’s debt and sell some of its restaurants, starting with Wendy's, court papers show.