Here "spirit" stands for Paul himself. This can be stated in active form. Alternate translation: "he became upset because he saw that there were idols everywhere in the city" or "seeing the idols everywhere in the city upset him" (See: [[rc://en/ta/man/jit/figs-synecdoche]] and [[rc://en/ta/man/jit/figs-activepassive]])