Cavity control of quantum material properties