Guessing they’d be mainly those that attended the lowest tier of accredited law school on an H-1 and then couldn’t find gainful employment here.
OTOH, after sept 11 my cousin (or, I think, his wife) decided they didn’t want to raise kids in NY so he moved back to Mumbai, but kept his job with a major ibank and salary, just working mostly remotely. I suspect though he’s an exception.
H-1 isn't a student visa.
In most states, you have to go to an accredited law school in order to even sit for the bar, and all of such law schools are located in the US (and charge commensurately-priced tuition). I believe there are ways around this in medicine because you can go to medical school elsewhere and then sit for boards in the US. Even if you have a foreign law degree, you still have to get a 1-year LLM ($60k) in order to sit for the bar.