Mining magnate Gina Rinehart ordered to pay hundreds of millions in royalties.