A landmark High Court ruling has handed family trusts and private businesses a major win over the ATO.