Spain pledged one billion euro military aid package to Ukraine after securing a security pact between their countries.