A court is set to rule whether billionaire Gina Rinehart will have to share her iron ore riches with the heirs of her father's business partners.