Deuterium-enriched water ties planet-forming disks to comets and protostars