Such laws are now a dead letter, as laws barring interracial marriage became a dead letter in 1967 with the Loving vs Virginia SCOTUS decision, even without states repealing their anti-miscegenation laws.
A flaw with that argument is that no major society has ever recognized marriage between members of the same gender. Marriage has always meant a union of opposite genders.
The nature of humans requires opposite genders for humanity to survive. That some couples may not produce offspring does not invalidate the requirement. Homosexual unions can not - by their very nature - produce offspring.
Comparing homosexual unions to bans on interracial marriage is nonsense.