The solution would probably be to distribute section 8 housing as evenly as possible to make sure there's nowhere for White Flight to happen to. Every ZIP Code gets its own patch of LIHTC housing, then there's nowhere to get away.
Make that a federal policy so that then there's nowhere even in the entire country where you can flee the policy.
Sure, it'll hurt some people with declining home values in the short term, but if a house is overpriced because of literal racism, then yes, you should eat that loss because that's money you only had due to prejudice.
That proposal would allow you to enjoy a Republican White House for the next 50 years.