Add `tools/python/compile_contributors.py` `--paths` option (#28710)
### Description
<!-- Describe your changes. -->
Add a new `--paths` option to `compile_contributors.py` to limit git
history queries using pathspecs.
Apply the path filter to both base and target git log collection and log
the active path filter in logs.txt.
### 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. -->
Allow `compile_contributors.py` to be used for releases where relevant
changes are largely limited to a subset of the codebase. E.g., we can
limit the paths to WebGPU EP-related files for the WebGPU plugin EP
release.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>