The Spanish government has approved a landmark decree to regularize approximately half a million migrants settled within the country.