A local agency may enter into an agreement with any other local agency for the allocation of ad valorem taxes for the purpose of implementing the financial component of the plan. Any such agreement shall be consistent with legislation implementing Article XIIIA and Article XIIIB of the California Constitution.