But he
"But Yahweh"
the needy
"needy people" or "poor people"
cares for his families like a flock
Possible meanings are 1) "makes the number of people in their families increase like flocks" or 2) "takes care of them like a shepherd cares for his sheep"