Mining giant loses fight to get tax data