IRS commissioner to resign after agency agrees to share immigrant tax data