The pop star can relate, after facing her own nearly decade-long legal battle against Dr. Luke that put her artistic freedom in limbo.