If the tree is Tree of Heaven, remove the tree -- it's invasive anyway. Otherwise, it is highly unlike that they will damage the tree.
To get rid of them, knock them into soapy water (don't spray as that will just kill all the beneficial insects). You can find some on line DIY traps.
You can also locate and kill the egg masses by scraping them off surfaces into bags.
https://extension.psu.edu/what-should-you-do-with-spotted-lanternfly-egg-masses
https://extension.umd.edu/resource/spotted-lanternfly-home-gardens/