A law of another state that authorizes a state agency to remove a child from the child’s parent or guardian because the parent or guardian allowed the child to receive gender-affirming health care, as defined in section 543.23, paragraph (b), is against the public policy of this state and must not be enforced or applied in a case pending in a court in this state. A court order for the removal of a child issued in another state because the child’s parent or guardian assisted the child in receiving gender-affirming care in this state must not be enforced in this state.