From what I understand, St. Thomas Aquinas went back and forth and ultimately affirmed it–unfortunately, he argued against it in his most famous work, the Summa (although, in his period of denial, he still believed her to be sanctified in the womb immediately after conception).
First, he affirmed it: “Such was the purity of the Blessed Virgin Mary, who was exempt from both original and actual sin.” [Com. in I Sent, d. 44, q. 1, a. 3, ad 3]
Later, in the Summa, he explicitely denies it: “The Blessed Virgin did indeed contract original sin.” [Summa theologiae IIIa, q. 27, a. 2, ad 2]
Ultimately, though, he accepted it: “For she was most pure because she incurred the stain neither of original sin nor of mortal sin nor of venial sin.”[Expositio super salutatione angelica]
Regarding the criteria for a dogma, it is that is a truth revealed by God. It is generally taught as such always and everywhere, but the whole reason for “extraordinary” judgments of the supreme authority in the Church is to settle a matter when that unanimity breaks down (what cannot happen is the whole Church embracing an error or rejecting a dogma). Although, in the case of the IC, unanimity had already been restored through normal means well before hand. The definition itself by Pius IX was itself kind of unique in it being more of a capstone.