The immunocompromised absolutely can be vaccinated, it just might not work as well for them, see: Powell, Colin
The best way to keep these immunocompromised people from becoming infected and playing host to a variant factory is to vaccinate everyone around them, even 19 year olds and elementary students who themselves aren't in as high of a risk category personally. The fact that the vaccine isn't perfect only makes it more essential that everyone is vaccinated - if the vaccine were perfect we might get to herd immunity with 70% of the population vaccinated, but with a less effective vaccine we need even higher numbers to get there. The vaccine hesitant are only dragging out the pandemic further and creating new risks.