This verse could be reordered to be more clear. AT: "When all the people who had been baptized by John, including the tax collectors, heard this, they declared that God is righteous"
This can be stated in active form. AT: "because they had let John baptize them" or "because John had baptized them" (See: [[rc://en/ta/man/translate/figs-activepassive]])
This can be stated in active form. AT: "they did not let John baptize them" or "they rejected John's baptism" (See: [[rc://en/ta/man/translate/figs-activepassive]])