Longtime Maduro ally departs Prosecutor’s Office, endorsing a new Amnesty Law while leaving behind a legacy of sanctions and opposition criticism