Notwithstanding the provisions of this chapter that may otherwise be applicable to a trust, no provision thereof shall apply to any special needs trust, supplemental needs trust, or other similar trust established for a person with a disability as a beneficiary, including without limitation, any trust established pursuant to the provisions of 42 U.S.C. § 1396p(d)(4)A or C, as amended from time to time, or other similar federal or state statute, to the extent that such provision would disqualify such trust beneficiary at any time from eligibility for public needs-based assistance benefits for which the beneficiary would otherwise qualify.