This paper presents the gravitational-wave measurement of the Hubble constant \( H_0 \) using the detections from the first and second observing runs of the Advanced LIGO and Virgo detector network. The presence of the transient electromagnetic counterpart of the binary neutron star GW170817 led to the first standard-siren measurement of \( H_0 \). Here we additionally use binary black hole detections in conjunction with galaxy catalogs and report a joint measurement. Our updated measurement is \( H_0= 68^{+14}_{-7} \, \mbox{km s}^{-1} \,\mbox{Mpc}^{-1} \) (\( 68.3\% \) highest density posterior interval with a flat-in-log prior) which is a 7\% improvement over the GW170817-only value of \( 68^{+18}_{-8} \, \mbox{km s}^{-1} \,\mbox{Mpc}^{-1} \). A significant additional contribution currently comes from GW170814, a loud and well-localized detection from a part of the sky thoroughly covered by the Dark Energy Survey. Inclusion of contributions from all binary black hole detections entails a thorough marginalization over unknown population parameters. With numerous detections anticipated over the upcoming years, an exhaustive understanding of other systematic effects are also going to become increasingly important. These results establish the path to cosmology using gravitational-wave observations with and without transient electromagnetic counterparts.