What reason does the company have to think that young white men fit the job better? I can imagine that there are properties that these kind of people have that makes them a better fit, but why not advertize these properties instead? This should probably not lead to a lawsuite.
Its obviously OK to implement it, plenty of examples of that, just not OK to talk about it in public.