Startup turns mining waste into critical metals for the U.S.