"in honor of Yahweh"
This means that they anointed him and declared him as king.
"anointed him to rule over Israel on Yahweh's behalf"