Even before the pandemic, young families were struggling to afford the astronomical costs of child care, which exceeds $10,000 a year in many parts of the country.