Retiree benefits aren’t as secure as they used to be, as auto and airline workers and others have learned in recent years.