Agreement has Tehran footing bill for construction of power plants, transmission lines, possibly connecting countries via Iraq, as Islamic Republic seeks to deepen role in country