Here "the foundations" may refer to law and order. This rhetorical question is asked to add emphasis. It can be translated as a statement. AT: "Righteous people cannot do anything when evil people are not punished when they disobey the laws!" (See: [[rc://en/ta/man/translate/figs-rquestion]])
Here Yahweh is represented by his "eyes." Yahweh is aware of everything that happens. AT: "He examines all that humanity does" (See: [[rc://en/ta/man/translate/figs-synecdoche]])