There are a set of inner and outer ball bearings pressed into the tub that support the spin basket. Any lateral play=bad bearings.
Fortunately, the rear tub assembly is still relatively cheap, you might want to consider replacing it but it is a big job.