Magnetic field-induced modification of superfluid density and interplane spectral weight in YBa$_2$Cu$_3$O$_y$