The singer will share songwriting credit for Sam Smith's "Stay With Me" to resolve a copyright dispute.