Affirmative Action was from Executive Order 11246 (1965) -- concurrent with and part of the same movement as civil rights legislation -- applying to federal contracting; it largely spread to large organizations that weren't direct federal contractors through subcontracting relationships and through state governments adopting similar requirements in their contracting.
They're absolutely in the same category.
A lot of the culture war entities which now dominate the GOP did so (obviously, with different language, as "woke" and "DEI" weren't the current generic epithets for things the Right doesn't like) at the time, but (1) were mollified in some cases with special exclusions, like religious schools being excluded from the definition of covered public accommodations, and (2) otherwise were less politically powerful within the party.