Engineering quantum materials with chiral optical cavities