The trustees of each railroad in reorganization in the region shall attempt to negotiate agency agreements with the Corporation, the National Railroad Passenger Corporation, or a profitable railroad for the processing of all accounts receivable and accounts payable attributable to operations prior to the conveyance of property pursuant to
section 743(b)(1) of this title and for the payment of only those accounts payable which relate to obligations of the estates identified in paragraph (1) of this subsection. If any railroad in reorganization in the region fails to conclude such an agreement within a reasonable time prior to such conveyance, the applicable reorganization courts, after giving all parties an opportunity to be heard, shall prescribe the terms of such an agency arrangement by order, giving due consideration to the need, wherever possible, to make such agreements uniform among the various estates. Nothing in this subsection shall be construed as permitting any district court of the United States having jurisdiction over the reorganization of a railroad in reorganization in the region to enjoin, restrain, or limit the Corporation, the National Railroad Passenger Corporation, or a profitable railroad from applying, to payment of the obligations of the estates identified in paragraph (1) of this subsection, amounts collected as (A) accounts receivable pursuant to this paragraph, (B) cash or other current assets identified pursuant to paragraph (3) of this subsection, or (C) proceeds of loans pursuant to paragraph (1) of this subsection. Any agency agreement executed prior to
October 19, 1976, shall be deemed amended to the extent necessary to conform such agreement or order to the provisions of this paragraph. Nothing in this paragraph shall be construed to affect any payment made prior to
October 19, 1976, with respect to obligations other than those identified in paragraph (1) of this subsection.