Spain is facing an unlikely problem - how to spend billions of dollars in grants and loans from the European Union.