The rapper and pop star had been accused in a lawsuit of scratching and spitting on a security guard in 2018.