Judge approves A&P bankruptcy exit financing