The main purpose of this legislation is to amend the Child Abuse Prevention and Treatment Act to ensure that states do not receive federal funding if they discriminate against parents or guardians who oppose certain medical or social treatments related to a minor's gender identity. Specifically, it targets situations where parents believe that a minor's expressed gender identity does not align with their biological sex.