Every such judge when fulfilling the duties imposed upon him or her by said acts of congress, and by this chapter, shall be deemed and held to be acting as a trustee for the purposes of fulfilling the purposes of said acts and not as a superior court, and such judge shall be deemed to be disqualified to sit as judge of such superior court in any action or proceeding wherein is involved the execution of such trust or rights involved therein.