The US bankruptcy court has approved an agreement that will see failed chicken group Pilgrim's Pride hire its former CEO and COO as consultants.