If your iCloud backup requires a newer iOS version, simply update your iPhone by going to Settings > General > Software Update. Once the update is installed, you can proceed with restoring your backup.