The H1b program really isn't the same question as "affirmative action." H1b's aren't displacing Americans from slots in graduate programs as a rule, we've just massively expanded the number of slots available. It's absolutely a problem of resource allocation, degradation of the domestic scientific training process, and training competing nations in how we do science. But it's not affirmative action, especially since there's a bias against foreign students if anything.
I am talking about pure affirmative action as in :preferential treatment in regards to GRE scores for Asians of certain backgrounds. H1B is a different matter altogether, it is highly detrimental to US workforce and probably in the end to overall economic conditions in the country. H1B displaces American citizens from high paying jobs and replaces them with indentured serfs thus training the workforce to be complacent, obedient and appreciative of lower wages. The obvious monetary benefits of H1B usually transferred to board of directors and VPs and then to complete the cycle to the election campaigns of politicians.