A US court has approved Pierre Foods' reorganisation plan, meaning that the company will now emerge from bankruptcy.