Just in case someone thinks they are not replaceable - THINK AGAIN! YOU ARE! It's been going on for atleast 15 years so CHANGE your jobs if you work in technology. Why wait till the last nanosecond and get laid off?
If you really do NOT want to change your job, then move to a country that is doing the outsourcing. Be aware though, you will have competition and may not get the job there.
Law makers cannot save your jobs! It is also not their role to require people to keep you in your profession.