Causality Versus Gauge Invariance in Quantum Gravity and Supergravity