In my opinion, a possible solution would be to get rid of district based funding for schools and instead fund schools mostly based on student amount. One problem of that model is that it can result in teachers avoiding certain schools because that school having a bad rep and thus that school having to pick worse teachers.
Another solution I could see working is making it much easier for students to go to other schools than the default one assigned to them. Altough, that runs into issues of areas where there isn't any "wealthy" school nearby.
I get that it's an incredibly difficult problem to solve and that, tbh, I don't really have much of a clue how to solve it either. So the best I can do is throwing ideas at the wall to see what is workable, while opposing policies I see that I deem to be actively harmful.
Thinking more about my ideas, I think there is a link, altough can't really argument that one atm, behind "no child left behind" and "bad" schools getting worse.