1. Pass a law giving the telcos absolute immunity for the wiretapping, as discussed here. Meaning, no suit can be brought.
2. Pass a law that makes the US Govt liable for the wiretapping, while still allowing the telcos to be sued. This means, suit can be brought, during trial discovery can be made, etc, but whatever liability is ultimately found is covered by the US Govt.