Query: In what year did the Marshall Islands gain official recognition by the major European nations?
Context: The European powers recognized the islands as part of the Spanish East Indies in 1874. However, Spain sold the islands to the German Empire in 1884, and they became part of German New Guinea in 1885.