You might GOOGLE "tenants rights" and look for the entry about OBAMA's Bill of rights:
Basically, a tenant caught in a foreclosure, have the right to stay for 90 days after the foreclosure, or thru the lenght of their lease. The Lease is enforcable.
Look it up.
Good luck and may God bless