Move term to a different vocabulary
You should load existing term using term id and then update vid of term from new vocabulary vid then save it.



use Drupal\taxonomy\Entity\Term;

$term = Term::load($tid);
$term->vid->setValue('ID value');
$term->Save();