The monthly or daily charge, not to exceed cost, for care, support, and maintenance of minor persons placed or detained in or committed to any institution by order of a juvenile court, the cost of delinquency-related legal services referred to by Section 903.1, the cost of probation supervision referred to by Section 903.2, and the cost of sealing records in county or local agency custody referred to by Section 903.3 shall be determined by the board of supervisors. The cost of dependency-related legal services referred to by Section 903.1 and the cost of sealing records in court custody referred to by Section 903.3 shall be determined by the court. Any determination made by a court under this section shall be valid only if either (1) made under procedures adopted by the Judicial Council or (2) approved by the Judicial Council.