Notwithstanding any other provision of law, a legislative body, at the time of the adoption of an ordinance pursuant to Section 33101 or 33140, and pursuant to a resolution authorizing such an action, may contract with the Department of Housing and Community Development, or any other agency or housing authority, for the furnishing by the department, agency, or housing authority of any necessary staff services associated with or required by redevelopment and which could be performed by the staff of an agency. In such a case the legislative body shall be vested with all of the rights, powers, duties, and privileges and immunities vested by this part in an agency.