While in a Jam Session with other users a button can be put on the currently playing song. When you click it a Spotify bubbles animation will trigger and the song will show a "Like"
It's a way to express your appreciation for someone's song choice.
The data collected from liked songs can then be used to suggest other songs in the same style or genre to that person. It's a way of exposing people to more music they would never have otherwise thought to search for.