Projects are not kubernetes native concept but rather an organizational scheme for Rancher. But each namespace is labeled with a project ID you can select when defining a policy and at least for OPA you can specify this value in the selector to apply a policy to all of the namespaces in the project.