In addition to any purpose authorized under the joint powers law for which bonds may be issued, an authority may issue bonds in the manner set forth in Article 4 (commencing with Section 6584) of Chapter 5 of Division 7 of Title 1 of the Government Code, to finance or refinance any port or harbor infrastructure or to make deposits into the infrastructure fund or any subaccount thereof, except that a nonprofit public benefit corporation may issue bonds only to the extent authorized by a joint powers agreement.