The project would have given the UK a strategic foothold in the rare earths industry.