This is why he could say, "I and my Father are one" (John 10:30), and "He that hath seen me hath seen the Father" (John 14:9), and in his high priestly prayer, "This is life eternal, that they might know you, the only true God, and Jesus Christ whom you have sent" (John 17:3). For the disciples, Jesus stood in the place of God. He spoke God's words, proclaimed God's truth, and pronounced His judgments. Yet he remained distinct from the Father, as Acts 2:22 makes plain: "Jesus the Nazarene, a man attested to you by God with miracles and wonders and signs which God performed through him." Jesus had every right to claim to be God — because God was in him, doing His works. This is the Hebrew Principle of Agency at its highest and fullest expression.
Jesus had every right to claim to be God, because he
was God, as the eternal Son. Proof-texting almost always leads to wrong conclusions because it ignores so much other context. Posting a few verses from John's gospel, for example, without taking into account his prologue and many other things throughout the gospel, including in the very passages of the verses you gave, leads to wrong conclusions.
The entire point of John's prologue is to introduce us to who Jesus is as the Son of God:
Joh 1:1 In the beginning was the Word, and the Word was with God, and the Word was God.
Joh 1:2 He was in the beginning with God.
Joh 1:3 All things were made through him, and without him was not any thing made that was made.
...
Joh 1:9 The true light, which gives light to everyone, was coming into the world.
Joh 1:10 He was in the world, and the world was made through him, yet the world did not know him.
...
Joh 1:14 And the Word became flesh and dwelt among us, and we have seen his glory, glory as of the only Son from the Father, full of grace and truth.
Joh 1:15 (John bore witness about him, and cried out, “This was he of whom I said, ‘He who comes after me ranks before me, because he was before me.’”)
There is no other way to understand that than the Son has always existed because he is also God in nature.
Joh 5:18 This was why the Jews were seeking all the more to kill him, because not only was he breaking the Sabbath, but he was even calling God his own Father,
making himself equal with God.
Joh 6:33 For the bread of God is
he who comes down from heaven and gives life to the world.”
…
Joh 6:38 For
I have come down from heaven, not to do my own will but the will of him who sent me.
…
Joh 6:48
I am the bread of life.
Joh 6:49 Your fathers ate the manna in the wilderness, and they died.
Joh 6:50
This is the bread that comes down from heaven, so that one may eat of it and not die.
...
Joh 6:58
This is the bread that came down from heaven, not like the bread the fathers ate, and died. Whoever feeds on this bread will live forever.”
Joh 8:23 He said to them, “You are from below;
I am from above. You are of this world;
I am not of this world.
...
Joh 8:58 Jesus said to them, “Truly, truly, I say to you, before Abraham was, I am.”
Joh 10:30 I and the Father are one.”
Joh 10:31 The Jews picked up stones again to stone him.
Joh 10:32 Jesus answered them, “I have shown you many good works from the Father; for which of them are you going to stone me?”
Joh 10:33 The Jews answered him, “It is not for a good work that we are going to stone you but
for blasphemy, because you, being a man,
make yourself God.”
Joh 10:34 Jesus answered them, “Is it not written in your Law, ‘I said, you are gods’?
Joh 10:35 If he called them gods to whom the word of God came—and Scripture cannot be broken—
Joh 10:36 do you say of him whom the Father consecrated and sent into the world, ‘
You are blaspheming,’ because I said, ‘I am the Son of God’?
Joh 12:44 And Jesus cried out and said, “Whoever believes in me, believes not in me but in him who sent me.
Joh 12:45 And whoever sees me sees him who sent me.
Joh 12:46
I have come into the world as light, so that whoever believes in me may not remain in darkness.
Joh 13:3 Jesus, knowing that the Father had given all things into his hands, and that
he had come from God and was going back to God,
Joh 16:27 for the Father himself loves you, because you have loved me and have believed
that I came from God.
Joh 16:28
I came from the Father and have come into the world, and now I am leaving the world and going to the Father.”
Joh 16:29 His disciples said, “Ah, now you are speaking plainly and not using figurative speech!
Joh 16:30 Now we know that you know all things and do not need anyone to question you;
this is why we believe that you came from God.”
Joh 17:3 And this is eternal life, that they know you, the only true God, and Jesus Christ whom you have sent.
Joh 17:4 I glorified you on earth, having accomplished the work that you gave me to do.
Joh 17:5 And now, Father,
glorify me in your own presence with the glory that I had with you before the world existed.
Joh 20:28 Thomas answered him, “My Lord and my God!”
That's not everything, but more than sufficient to show that Jesus claimed to be God and to have come from heaven, which is why John could then state that he was the agent of creation and why Thomas could exclaim that Jesus was his Lord and his God. From beginning to end, John's gospel shows that Jesus, as the Son of God, is both truly God and truly man.
Appealing to Heb. 1:1-2 also means ignoring some significant context within that chapter, namely, verse 10-12:
Heb 1:8
But of the Son he says, "Your throne, O God, is forever and ever, the scepter of uprightness is the scepter of your kingdom.
...
Heb 1:10 And, "You, Lord, laid the foundation of the earth in the beginning, and the heavens are the work of your hands;
Heb 1:11 they will perish, but you remain; they will all wear out like a garment,
Heb 1:12 like a robe you will roll them up, like a garment they will be changed. But you are the same, and your years will have no end."
But that is a quote from the OT speaking of Yahweh:
Psa 102:25 Of old you laid the foundation of the earth, and the heavens are the work of your hands.
Psa 102:26 They will perish, but you will remain; they will all wear out like a garment. You will change them like a robe, and they will pass away,
Psa 102:27 but you are the same, and your years have no end.
Notice that
the Father says
of the Son. In other words, the Father is applying a passage about Yahweh
to the Son, effectively saying that Psa. 102:25-27 are speaking of the Son.
And, if you want to appeal to a verse, as you did with Heb. 1:2,
then quote the whole thing:
Heb 1:2 but in these last days he has spoken to us by his Son, whom he appointed the heir of all things,
through whom also he created the world.
That is in complete agreement with verses 10-12, as well as John 1:3, 1 Cor. 8:6, and Col. 1:16-17.
The doctrine of the Trinity is the best explanation of all that God reveals of himself in Scripture, with the Son being truly God, having been then born in the flesh as Jesus.