Spain has three months to process a million migrant applications