New court filings reveal previously undisclosed details of officials' discussions over a controversial information-sharing agreement.