This sounds exactly like a session that I had. I too told my T that I hated all men. While I can't remember exactly what he said, I do remember feeling a little stupid when I got home. It got me thinking about why I hated men. The more I thought about it, the more I realized that I didn't hate "ALL" men. I was just thinking of all the men who had harmed me in some way. Then I felt bad because I had basically just told my T that I hated him. Of course I didn't hate him. Which proved that I didn't hate all men. I did offer him an apology the next time I saw him, and he told me that I didn't owe him one because he could understand why I felt the way I did.
You are entitled to your feelings about men. You don't owe anyone an apology for how you feel. I'm willing to bet that this isn't the first time that your T has heard someone say this.
This isn't the only time that I've said something ebarrassing, and it probably won't be the only time for you. You should be proud of yourself for disclosing how you really feel. There is no other way for therapy to work if you aren't willing to be completely honest, and not hold things back. It sounds to me like you are very brave.