The airline filed for Chapter 11 bankruptcy protection after struggling with losses and growing debt.