Rights activists, church leaders and drug and gun rights advocates found common ground and filed a lawsuit against the federal government to halt a vast National Security Agency electronic surveillance program.

In the lawsuit filed Tuesday, San Francisco's Electronic Frontier Foundation, representing the unusually broad coalition of plaintiffs, is seeking an injunction against the NSA, Justice Department, FBI and directors of the agencies.