Remember that white light is composed of all wavelengths of visible light.
If white light passes through a green filter, the glass will absorb all the colors but green light will be able to pass through it.
The white shirt reflects all the wavelengths, but if only green light reaches it, then it will appear to be green.