The patent record shows a hidden federal bet: instead of opening new mines, the US is engineering rare-earth supply out of coal ash, acid mine drainage, and other industrial waste.