A 2006 law designed to boost employees’ retirement-savings is having the opposite effect for some people.