Habakkuk asks this rhetorical question to emphasize the positive answer. It can be translated as a statement. Alternate translation: "You surely are from ancient times, Yahweh my God, my Holy One." (See: [[rc://en/ta/man/translate/figs-rquestion]])
The word "them" refers to the Chaldeans. The words "judgment" and "correction" can be translated with verbs. The reader should understand that the Chaldeans will judge and correct Yahweh's people. Alternate translation: "has ordained them to judge his people, and you, Rock, have established them to correct your people" (See: [[rc://en/ta/man/translate/figs-abstractnouns]] and [[rc://en/ta/man/translate/figs-explicit]])
Habakkuk speaks of Yahweh being the one who protects him and keeps him safe as if he were a rock upon which Habakkuk could stand in order to be out of his enemies' reach. (See: [[rc://en/ta/man/translate/figs-metaphor]])