Apple gave them the code and the rest is elaborate ruse to give Apple cover.
No, Apple did not. Apple was seriously fighting this in two courts. One at the appellate level. They would not sabotage their legal fight which they had already spent millions of dollars fighting.