I've found a few papers detailing how you could do it in theory, but haven't seen anything in practice. Like a system for distributing bitcoin to private keys, where those keys are only distributed if the recipient possesses certain attributes that would unlock the access policy in the transaction.
EDIT: I'm thinking of something like this: ieeexplore.ieee.org/document/7846935 where there is a protocol using ABE built on top of, or aside from the Bitcoin protocol, in order to distribute coins based on certain attributes. The keys themselves are distributed by the authority who determines who possesses the attributes.