Hi Tinanam0102
You asked about the word "it", but you also underlined "it" twice, and "it" refers to different things in each case.
Here is my opinion:
"it had intended"
it = the (Spanish) government
The past perfect was used because the intention referred to is connected to the establishment of subsidies, and that preceded the actual growth as well as the subsequent cutting/capping of subsidies. (The Spanish government had new/different intentions when it cut the subsidies.)
"it" (the second one)
It would have been easier to say what "it" refers to if you had included the rest of the sentence, but I guess that "it" probably refers to subsidies or the growth created by subsidy program.