What is it exactly that gets you on a no-fly list? New documents reveal a fight over defining an ‘immediate threat’