Measuring the Galactic Distribution of Transiting Planets with WFIRST