SAN FRANCISCO AP – A federal judge has tossed out more than three dozen lawsuits filed against the nation’s telecommunications companies for allegedly taking part in the government’s e-mail and telephone eavesdropping program that was done without court approval.

The dismissals were widely expected after Congress in July agreed on new surveillance rules that include immunity from lawsuits for telecommunications companies that allegedly helped the U.S. spy on Americans.