gods refers to 'judges' of the people. See it also used this way in verse 6, as well as Exodus 21:6, 22:8-9, 22:28, and John 10:34-35. Also see the footnote at Exodus 22:9.