Ultimately it affects the developers who are born in China and Russia as well. Not everyone can afford migrating to a "white listed" country due to various reasons like family, friends and other commitments.
How is that different from any other job? Unless they support remote work, which most don't, is it not discrimination for a job to only consider people who are willing to move to city X or country Y?