The last chapter in one of Australia’s biggest environmental battles is set to play out.