We analyze the interplay of dissipative and quantum effects in the proximity of a quantum phase transition. The prototypical system is a resistively shunted two-dimensional Josephson junction array, studied by means of an advanced Fourier path-integral Monte Carlo algorithm. The reentrant superconducting-to-normal phase transition driven by quantum fluctuations, recently discovered in the limit of infinite shunt resistance, persists for moderate dissipation strength but disappears in the limit of small resistance. For large quantum coupling our numerical results show that, beyond a critical dissipation strength, the superconducting phase is always stabilized at sufficiently low temperature. Our phase diagram explains recent experimental findings.