Here the word "I" refers to Claudius Lysias, the chief captain. The word "they" refers to the Jews who accused Paul. The word "him" refers to Paul.