I honestly don't think marvel is against marriage in principal. It's simply a matter of them not always believing it's the best course for certain characters.
If Marvel was entirely against the concept of marriage, we wouldn't see marriages in the first place. But we clearly do.