The US also "sells" passports but most people never heard of that.
Basically the way it works, foreign investors (mostly Chinese) - invest their funds ($1mln) into a "qualified enterprise".
This program is a fraud magnet!
The entire USCIS department is a can of world that hasn't been kicked yet. Legal immigration in the US is an absolute mess.