The Federal government & civil unions

Does Windsor v. United States require/allow the federal government to recognize civil unions from states like New Jersey as marriage since they’re the legal equivalent under state law? Or do they have to be civil marriages? What would happen if a state reclassified all marriages as civil unions?