Bi-directional ultrafast electric-field gating of interlayer charge transport in a cuprate superconductor