Mining magnate Gina Rinehart spent millions of dollars promoting project despite ruling it was ‘not in public interest’