The European Investment Bank (EIB) granted a EUR-335-million (USD 382.65m) green loan to Spanish utility Endesa SA (BME:ELE) for 785 MW of wind and solar projects in Spain.