I recall that universities in extremely expensive places like UCLA, Stanford etc subsidize housing and/or provide specially priced housing for staff and faculty. Not to say they are cheap, they are just tolerable given the salaries, which is more than you can say with regular market pricing.