The failed battle to stop Australia’s vast new mine shows why the world isn’t ready to move on from coal