The word "they" refers to the "unrighteous witnesses"
"I wore sackcloth" or "I showed that I was sad"
"them with my head bent down in prayer"