You omitted an important event, the Church issued a dispensation from its own law so Henry’s marriage to his dead brother’s wife was valid and legal; no problem at all.
Incidentally Catherine’s marriage to Prince Arthur, Henry’s older brother was never consummated.