Federal judge rules NSA data sweep an ‘indiscriminate and arbitrary invasion’