If on review of an application filed under Section 152.001 the court determines that emergency intervention is necessary to obtain funds needed for the payment or reimbursement of a decedent's funeral and burial expenses, the court may order funds of the decedent that are being held by an individual, an employer, or a financial institution to be paid directly to a funeral home or the applicant, as applicable, only for:
(1) reasonable and necessary attorney's fees for the attorney who obtained the order;
(2) court costs for obtaining the order; and
(3) funeral and burial expenses not to exceed $5,000 as ordered by the court to provide the decedent with or to provide reimbursement for a reasonable, dignified, and appropriate funeral and burial.