A federal judge in Oakland has knocked out a long-running lawsuit brought on behalf of a group of AT&T customers who claimed their internet communications were swept up in the National Security Agency’s surveillance dragnet.

U.S. District Judge Jeffrey White of the Northern District of California sided with government lawyers who had argued that the case originally filed in 2008 could not move forward without “grave risk to the national security.”