The president’s attorney said they agreed to cooperate in the interests of operational security and integrity.