In a large, heavy saucepot, melt the butter. Stir in the chopped onion and cook until soft. Stir in the minced garlic and cook until fragrant. Add the flour to make a roux, and stir and cook for about 3 minutes. Add the milk, whisking, and simmer the mixture, continuing to whisk and cook until smooth and thick. Remove the pan from heat.