Western Australian Premier Roger Cook has confirmed his government will scrap its controversial Aboriginal cultural heritage legislation.