It doesn't come across in English this way, but "they rejoiced with joy" is a cognate accusative in Greek (ἐχάρησαν χαρὰν), literally something like "they rejoiced a joy." This pleonastic construction and the redundancy of both "exceedingly" and "great" (in the opposite order in the Greek: μεγάλην σφόδρα) illustrate the high degree of the wise men's emotion. Even just one of these pairs would indicate this, but using both compounds the effect.