The deals with the Chinese tech giant have put the spotlight on the unusually close relations between Madrid and Beijing