EMBATTLED Labor senator Sam Dastyari has resigned from parliament amid mounting pressure following a scandal over his close ties with a Chinese political donor.