Obama defends NSA's "modest encroachments on privacy"