There is no contradiction in the Bible regarding who arrested Jesus. All we need to do is look at the context.
A multitude
(Matt. 26:47, 50) – “And while He was still speaking, behold, Judas, one of the twelve, came up, accompanied by a great multitude with swords and clubs, from the chief priests and elders of the people . . And Jesus said to him, “Friend, do what you have come for.” Then they came and laid hands on Jesus and seized Him.”
(Mark 14:43) – “And immediately while He was still speaking, Judas, one of the twelve, came up, accompanied by a multitude with swords and clubs, from the chief priests and the scribes and the elders.”
(Luke 22:47) – “While He was still speaking, behold, a multitude came, and the one called Judas, one of the twelve, was preceding them; and he approached Jesus to kiss Him.”
Roman cohort, commander, and Jewish officers.
(John 18:12) – “So the Roman cohort and the commander, and the officers of the Jews, arrested Jesus and bound Him,”
This is obviously no biblical contradiction. Matthew, Mark, and Luke tell us that a multitude approached Jesus in the garden and they seized Him. John tells us that the arresting party was “the Roman cohort and the commander, and the officers of the Jews…” Obviously, the multitude included those who were actually doing the arresting.