Like passing retroactive bills so its "not illegal".
(not saying this one is just that but they have done it in the past so the telcos didn't get sued I believe)
Sure, but note that this is completely constitutional, the constitution explicitly grants Congress the right to set the jurisdiction of all courts inferior to the Supreme Court.