You can build new soil on top of contaminated soil to bury it. Here’s a permaculture site in an old rail bed in nyc that has nasty stuff lurking beneath many layers of new soil[0].
Not really sure if trees uptake heavy metals.
0: https://youtu.be/UqyK_9iybD8?si=rx7iCjsTu1Zn6YbO