They would sell the house to another eligible faculty member. As long as Stanford is still hiring or tenuring new faculty, there will be a steady stream of potential buyers.
In some cases, Stanford will buy on-campus homes and renovate them, and then resell them.