3 years, immigrant can work anywhere, any number of employers.
Guess how many illicit h1b employers will be interested in bringing an immigrant, if they are not guaranteed that the immigrant will stay with them?
If you quit at day 2, the employer is still on the hook for all the fees.
It can be gamed, but if you make the fees something like 30-40K, genuine employers will simply shrug as they'll amortize that over 3-4 years. Sweatshops, however, will lose bad.
The reason is that the choke point benefits these companies. If you cleared the backlog so that a green card was a 12 month process, the companies would quit asking for H1-B's unless they really wanted them.
If US gives X green cards to nationals of Y countries (X>>Y) in a year, each country is allocated X/Y number of green cards.
This puts Indians, Chinese and other high population countries at a disadvantage.
An Indian applying for green card in EB-3 category (minimum qualifications being undergrad degree + 3 yrs experience i think) has to wait for ~12 years from the date his gc process was started. EB-2 (advanced degree and/or 5+ yrs experience) is ~10 years (these are my ballpark numbers)
Its not the turnaround time, but the concept of diversity based green cards that slows down the process.
Once you apply for a green card, you have to maintain legal immigration status continuously. Furthermore, nationals of India and China have to wait longer, due to country quotas and relative demand. There is something called a priority date, which is somewhat akin to taking a number instead of waiting on queue, except it's really more like a number for the secondary queue to get a number for the real queue.
There is an I-140 form that is part of the process, which is filed by the employer. If this form is withdrawn, perhaps in response to changing jobs, it can reset priority dates or cause extensions to be denied.
When I was on an H1B visa I changed jobs multiple times, very easily. Part of the problem is that people (including potential employers) aren't aware how easy it is.