Melt butter in a saucepan. Add onions and sautee until tender. Add garlic and pepper, let simmer for one minute. Add broccoli and chicken broth. Bring to a boil, then simmer for 10-15 minutes. In a separate bowl, whisk flour into milk until completely diffused. Stir into soup until thickened. Stir in cheese until melted.