Around 1.5 million pensioners could lose benefits, and the law would reverse a 1974 law that protects earned pensions