But Samson’s wife was [given] to his companion, whom he had used as his friend.
But Samson's wife was given to his companion, whom he had had for his friend.