irs rules for selling settlement