NSA spying threatens to hamper US foreign policy