The New York Stock Exchange was dismissed as a defendant Tuesday in three lawsuits accusing seven trading firms and the NYSE of fraudulently costing the nation’s largest public pension funds millions of dollars a year.

U.S. District Judge Robert W. Sweet said he relied on reasoning in an earlier securities case in concluding the NYSE was entitled to the same immunity enjoyed by the Securities and Exchange Commission when it was performing duties assigned by the SEC.