Venezuela's National Assembly says thousands of people have regained freedom under a new amnesty law.