I was getting ready to say YABU as someone with one of the worst Vomiting illnesses to exist however after reading further I get your annoyance.
you said he has been feeling sick all day, so that was already a warning sign, he had taken himself off to the toilet to be sick and goes back to bed.. This is the time if you haven’t already grabbed a sick bucket that you get one! It’s Midnight and you have a LO I can imagine you had to look after all day since your Husband is sick so your likely already in bed or getting ready for bed at this time since you said “he came back to bed”.
Me personally since I already have a sickness I always have my vomit bucket at hand however it doesn’t get pulled out until I have felt sick and charged to the bathroom and had that first vomit (the closest I’d get to vomiting on the floor is slightly missing the toilet which I clean up myself and don’t expect anyone else to despite how bad I feel). On my way back to bed i grab my bowl to place on the floor beside me regardless if I will be sick again or not because I don’t have the energy at that point to keep running to the bathroom!
from the point he complained earlier in the day he should have put in a contingency plan for if/when he actually vomits! So by the Time it gets to midnight he should have been fully prepared.
I mean maybe I’m just different but I got sick as a kid and even as a child I never once threw up on the floor in one of my episodes, even before I was use to the whole thing! On top of that, as a kid, had i of thrown up on the floor I would have been made to clean it up.. it was my responsibility to empty and clean that sick bucket every day (the vomiting will continue 5 days non stop) and after 5 days of vomiting and no hospital IV fluids I would be weak but nonetheless still expected to find the energy and strength as a kid!
make sure before using any carpet cleaner (an enzyme cleaner is best) you try to dry it up as much as possible and even after that the smell will still keep coming up but not as bad as trying to use straight cleaner on floor that’s already quite wet! It will take a few days to fully blow off and disappear smell wise (you can use some bicarb alone or with vinegar) to help but once it’s fully dry in a few days it will need to be cleaned again and maybe a few times unfortunately however he has had warning signs all day that he was sick so was his responsibility to sort himself out as he didn’t ask you to help him to the bathroom or grab him a bowl.. how are you to know he will vomit again or still feels sick? Sometimes you just need to get it out your system and feel better so without him communicating with you, you are not going to know what he needs and is a lot to expect you to get out of bed when you need to wake for your LO in the morning.
Even to this day i don’t expect my partner to do a thing when I’m sick and I’m currently pregnant and thrown up quite a few times.. she wouldn’t be pissed if I did throw up on the floor especially being pregnant (maybe a bit annoyed as I would be too) but at the same time I wouldn’t expect her to clean up my mess even though she likely would or come with any attitude.