Preheat the oven to 375 degrees. Bring a large pot of water to a boil. Add the broccoli and cook for 3-4 minutes until bright green and just tender. Add to a colander and toss with ice and cold water to stop them from cooking longer. Dry well.
Make the crispy onion topping. Melt 1/2 tbsp of butter in a pan over medium high heat. Add the onions and cook for 4-5 minutes until tender but still have thier shape. Remove the set aside in a bowl. Add another 1/2 tbsp of butter. Add the breadcrumbs and cook for 2-3 minutes until golden brown. Toss with the onions.
Make the mushroom sauce. Melt two tablespoons of butter in a pan. Add the mushrooms and cook for 4-5 minutes until tender. Stir in the garlic and cook for 1-2 minutes until fragrant. Stir in the flour and cook for about 1 minute until light brown. Add the chicken broth and stir until the flour dissolves into the broth. Add the milk and 1/2 cup cheddar cheese. Bring to a simmer and cook for 3-5 minutes until it thickens. Season well with salt and pepper.
Spray a 9 X 13 dish with cooking spray. Add the broccoli florets and pour the mushroom sauce on top. Stir together so the broccoli is coated in the sauce. Top with 1/2 cup of shredded cheddar cheese. Then add the crispy onions.
Bake for 20-25 minutes until casserole is bubbling and the onions are crispy and golden brown. If needed, you can broil for 1-2 minutes to brown the top more.