IRS ends rule that hurt 'innocent spouses'