policy: Add provider policy evaluation support to stacks (#38768)