Two-photon quantum Rabi model with superconducting circuits