Maine Hospital Will Exit Bankruptcy After a Court Agrees to Reduce Its Debts