This means that people came to the king so that he could decide their disputes. Alternate translation: "who came to the king for him to judge over their disputes" (See: [[rc://en/ta/man/translate/figs-explicit]])
This sentence means Absalom convinced the men to be loyal to him rather than to David. Here the author speaks of how the people became loyal to Absalom by saying that he stole their hearts. Alternate translation: "In this way, Absalom convinced the men of Israel to be loyal to him" (See: [[rc://en/ta/man/translate/figs-metaphor]])