You will shepherd my people Israel, and you will become ruler over Israel
These two clauses mean basically the same thing and emphasize that Yahweh had chosen David to be king.
You will shepherd my people Israel
"You will care for my people Israel" or "You will rule over my people Israel"