SAN FRANCISCO — The federal government scored a major victory on Tuesday, snuffing out a court challenge to the mass surveillance of Americans’ online communications.

U.S. District Judge Jeffrey White of the Northern District of California said a group of AT&T customers who claim all of their Internet communications were swept up in the National Security Agency’s surveillance dragnet hadn’t demonstrated standing to sue under the Fourth Amendment.