Vulcan Elements, a rare-earth magnets startup, has secured a $620 million contract from the U.S. defense department.