provider aggrieved by a violation of subsection (a) may assert that violation as a claim or defense in a judicial proceeding and obtain all appropriate relief, including declaratory relief, injunctive relief, and compensatory damages, with respect to that violation. (2) A child welfare service provider that prevails in an action by establishing a violation of subsection (a) is entitled to recover reasonable attorneys’ fees and costs. (3) By accepting or expending Federal funds in connection with a program that provides child welfare services under part B or part E of title IV of the Social Security Act, a State waives its sovereign immunity for any claim or defense that is raised under this subsection. (d) For purposes of this section: (1) The term child welfare service provider includes organizations, corporations, groups, entities, or individuals that provide or seek to provide, or that apply for or receive a contract, subcontract, grant, or subgrant for the provision of, child welfare services. The provider need not be engaged exclusively in child welfare services to be considered a child welfare service provider. (2) The term child welfare services means social services provided to or on behalf of children, including assisting abused, neglected, or troubled children, counseling children or parents, promoting foster parenting, providing foster homes or temporary group shelters for children, recruiting foster parents, placing children in foster homes, licensing foster homes, promoting adoption, recruiting adoptive parents, assisting adoptions, supporting adoptive families, assisting kinship guardianships, assisting kinship caregivers, providing family preservation services, providing family support services, and providing time-limited family reunification services. (3) The term State includes any of the several States, the District of Columbia, any commonwealth, territory or possession of the United States, and any political subdivision thereof. (4) The terms funding , funded , or funds include money paid