It's not really a 'gag order', as much as he's signed an agreement with Sony which contains 'confidentiality clauses'.
The court didn't mandate this agreement - he decided that it would be better for him to settle than to face court, and part of settling included the 'gagging'.
The court didn't mandate this agreement - he decided that it would be better for him to settle than to face court, and part of settling included the 'gagging'.