legally effective transaction with non-arm's length party should not be disregarded because it was tax-motivated