The abstract noun "thanks" can be stated as a verb. Alternate translation: "for the purpose of thanking Yahweh" (See: [[rc://en/ta/man/translate/figs-abstractnouns]])
This can be translated in active form. Alternate translation: "he must eat the meat ... he may eat it" (See: [[rc://en/ta/man/translate/figs-activepassive]])