Nothing contained in this chapter shall be construed to limit the power of a court of competent jurisdiction to permit a fiduciary to take any action, or to restrain a fiduciary from taking any action, notwithstanding the permissions or restrictions contained in any written instrument under which the fiduciary is acting.