Melt the butter over medium heat in a large soup pot. Add the leeks and garlic and cook, stirring regularly, until soft and wilted, about 10 minutes. Adjust the heat as necessary so as not to brown. Add the potatoes, broth, bay leaves, thyme, salt and pepper to pot and bring to a boil.