These two lines mean basically the same thing. The two lines emphasize the combined effort of the earth's rulers to oppose God. (See: [[rc://en/ta/man/jit/figs-parallelism]])
These two phrases mean that they joined their armies together to fight a battle. Alternate translation: "set their armies together ... gathered their troops together" (See: [[rc://en/ta/man/jit/figs-metonymy]])