In an American housing market that for years has been plagued by too little inventory, builders are suddenly finding themselves with a glut of unsold homes.