Add support for selection policy delegate (based on PR #24653) (#24638)
### Description
Adds support for selection policy delegate directly to the release
branch. This is necessary to avoid having to update C# bindings (which
are in main but not in the release branch)
Based on https://github.com/microsoft/onnxruntime/pull/24635
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->