Some projects have refused code from developers because they are Russian or Chinese. Just because it is open source doesn't mean it is unbiased, free from politics, and without racism.
I can't see that argument working in a court of law...
Don't US(or any other country for that matter) laws discriminate based on nationality all the time?