Liberal government approved logging against advice from its own department that it could threaten the survival of the species, documents reveal