3. During the continuance of the stay, the court may direct, in its
discretion, upon three days notice to all parties, the release to a
contractor or materialman of all or such part of the moneys on deposit
as shall be sufficient to pay bills properly presented by such
contractor or materialman for the maintenance of and necessary repairs
to the building (including but not limited to payments for fuel,
electricity, gas, janitorial services and repairs necessary to remove
violations), upon a showing by the tenant that the landlord is not
meeting his legal obligations therefor or direct such release to a
municipal department to pay bills and expenses for such maintenance and
repairs upon a showing that the landlord did not meet his legal
obligation to provide such maintenance or perform repairs and that the
department incurred expenses therefor. Upon the entry of an order
vacating the stay the remaining money deposited shall be paid to the
plaintiff or landlord or his duly authorized agent.