The lakers do this trade to try and add some shooting and better front court defence. Spencer is a worse version of detonate Murray and is a more realistic trade target for the lakers, they also keep dlo to ship later.
The nets get some nice assets and they can maybe find a 3rd team for rui depending on how they want to replace Spencer.
This trade is a realistic deadline deal that is a win win.