As housing costs pull further away from wages, some essential institutions risk losing the workers they need to function.