Cavity quantum electrodynamics with a Rydberg-blocked atomic ensemble