Mr Mohamed would have had to agree not to take part in any legal challenge relating to his "capture, detention or prosecution" against the US, or any of its allies, and any rights to compensation would be assigned to the US government.