"who had them" or "who were controlled by unclean spirits"
# So there was much joy in that city
The phrase "that city" refers to the people who were rejoicing. AT: "So the people of the city were rejoicing" (See: [[rc://en/ta/man/translate/figs-metonymy]])