Pop star Kesha and producer Dr. Luke settle longstanding legal battle over rape, defamation claims