The statement is an allusion to Mark’s Gospel, where the phrase is used (Mk 1:12). Matthew and Luke also mention Jesus’ sojourn in the desert, but without the dramatic phrasing. Luke states, "And Jesus, full of the Holy Spirit . . . was led by the Spirit for forty days in the wilderness." This emphasizes the positive cooperation of Jesus with the Spirit. Mark’s more dramatic phrasing is simply part of his style. Mark uses action words to convey to his Roman audience that Jesus was a man of action. Action impressed Romans more than philosophical reflection, which impressed Greeks. Thus Luke’s Gospel, written for a Greek, stresses Jesus’ reflective side more, while Mark, writing to Romans, stresses Jesus’ active side more.
The word "drove" does not mean that Jesus was resisting the Spirit. Instead, Mark is trying to show how powerfully God was operating in Jesus’ ministry. He stresses how Jesus was brought into the desert by Spirit. The idea is not of one Person driving and one Person resisting, but of one Person driving and the other cooperating.