I know that some employers treat green card sponsorship similar to a bonus: if you leave before z years after getting the green card, you owe them $x0,000.
I sincerely doubt it, since the companies I've heard of that do it are large multinationals. As I point out below, it's much the same as a signing bonus or moving expenses.