Questions about what decides whether the photon is to go through or not and how it changes its direction of polarization when it does go through cannot be investigated by experiment and should be regarded as outside the domain of science.
I disagree highly with this quote, though I accept from the literature/pedagogy that "hidden variables" are not at play/responsible.