Your New Testament has been mistranslated to support the Trinitarian doctrine, which was formulated in the 300s and enforced among Christians at the point of a sword. Not a very proud moment for Christians.
The truth is, according to Paul, God made the creation FOR his son and his mission.
Jesus isn't Yahweh. Jesus is Jesus.
Your translation supplied the word "him" where it should have read "it." According to John, "the word" was "in the beginning." All one needs to do is go back to Genesis to verify what John means to say.
Genesis 1:3-5
And God said, “Let there be light,” and there was light. And God saw that the light was good, and He separated the light from the darkness. God called the light “day,” and the darkness He called “night.”
Here, we see that the vehicle of creation is the spoken word. God speaks things into existence. According to John, "All things were created by IT (the spoken word), and without IT (the spoken word) was not anything made that was made."
The first thing God created was light and John makes the connection between the creation light and the promise of life, which is the light of all men.
Trinitarians have corrupted John's gospel by introducing the concept of a Godhead where one was not intended by John. Once the Trinitarian dogma is removed, a wonderful declaration of God's eternal plan for salvation and Jesus' preeminence is revealed.
Another translation bent toward the False doctrine of Trinitarianism. John is saying that the word was created FOR him, not BY him.
To comprehend this passage, it's necessary to understand the preceding two paragraphs. John draws a parallel between God bringing light into the world through the spoken word in the form of electromagnetic radiation and how God brought light in the form of wisdom and divine revelation through his Son, who is the Light. It was "He" the light that came unto his own. He became the embodiment of the Light and dwelt among his people. And they beheld his glory (light) as of a one-of-a-kind Son.
It's also a common trait of those who attempt to show others what has happened to our faith over the centuries.
Not "BY" Jesus Christ. FOR Jesus Christ. The idea that God used an agent to create the world is Gnosticism, describing a divine being called the Demiurge, the agent responsible for creating the world. Why did the ancients believe this? They thought that the physical world was inherently evil and since God does not do evil, he can't be responsible for creating the physical world.
The Bible does not teach or infer that the physical world is evil.
Here the term "dia" means "in view of him."