Criminal justice gags are usually hours to days depending on the case.
The longer ones are usually to protect the arrestee if they are being put into protective custody / witness protection or are released as an informant.
Since this is national security related who knows, I don't even know if these cases have been brought up to the supreme court before.