Energy Vault Inc., a provider of systems that store energy by elevating heavy objects, agreed to license its technology to a company that plans to build storage facilities in China.