Here "give your ways" is an idiom that means to ask Yahweh to control your life. AT: "Ask Yahweh to guide your actions in life" (See: [[rc://en/ta/man/translate/figs-idiom]])
This is to represent another in legal issues. Here, when one trusts in Yahweh, he will defend that person and grant justice to that person. (See: [[rc://en/ta/man/translate/figs-idiom]])