As you yourself stated above, God said that His servant Job had spoken what was "right".
If Job had spoken what was "right"?
What was Elihu going on about?
Elihu LIED about Job, falsely accusing him, amongst other things.
His "claims" about being guided by God's Spirit were just that, "claims". He pompously claimed authority to bludgeon and accuse and burden a man who was weak, suffering inexplicably, in more ways than he can count, with yet more burdens, and self-righteousness, and jabs at him.
This alone defines who Elihu was and who sent him there.
It was NOT from God.
Same with Job's wife. She CONDEMNED Job for being a virtuous man, even under all of this horror, and told him, in essence to STOP it, to just curse God and die already.
Satan used not only Job's three "friends", but also Job's wife, and this pompous stranger named Elihu.
Not ONE of them even "prayed" for Job or ministered to him, or offered comfort or encouragement.
Not ONE.