Cavity quantum electrodynamics with many-body states of a two-dimensional electron gas