The law gives tenants and nonprofits the opportunity to match a bid made at a foreclosure auction and purchase a property.