US senator subjected to improper probe on foreign intel database: Declassified court order