“I was wiping my eyes and thanking him again and again,” Dunham, who always dreamed of having children, wrote.