The Trump administration has transferred hundreds of Venezuelan immigrants to El Salvador under an 18th century wartime law.