A deal that includes closing tax loopholes could mean a cap on deductions for charitable organizations.