Spain PM strikes key deal with Catalan separatists