The money will be used to construct a commercial-scale processing facility for heavy rare earth magnets, which are used in electric vehicles and wind turbines.