# they heard ... they glorified ... they said to him
Here the word "they" refers to James and the elders. The word "him" refers to Paul.
# They are
The word "they" refers to Jewish believers who wanted all believing Jews to keep the Jewish laws and customs.
# the law
this phrase here refers to the law of Moses