MELBOURNE—Prony Resources said on Wednesday Tesla Inc. had agreed to purchase around 42,000 tons of nickel in a multi-year deal—a pact that is set to make the New Caledonian miner a key supplier of the metal to the U.S. electric car maker. Prony, which bought the loss-making nickel operations in the French territory from Brazil’s…