For configuration profile, there is applicability rules, which allows to deploy the profile based on the combined criteria in the rule. However, currently, there are only two properties: OS edition and OS version. There is no compliant status. For more details about applicability rules, please click this link. https://learn.microsoft.com/en-us/mem/intune/configuration/device-profile-create#applicability-rules
I think the best way is to create a dynamic group, but again, there is no property for device compliance in the dynamic group rule. For the details about dynamic group rule, please click this link. https://learn.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-dynamic-membership
Thus, it's not supported for deploy configuration profiles and apps to the compliant devices only. I would recommend to submit a feature request on the Intune uservoice site by click the following link.