That cannot happen. That's discrimination.
It's unfair to discriminate on the individual's citizenship or immigration status. So even if there's a person from Ukraine that was given work authorization for 2 years and then this person should leave the US, in theory, they should be treated the same way as Americans. Green card holders are authorized to work in the US for life, it's permanent residence.