Raising a child can cost over $300,000 from birth to age 17. Here's how to build a financial foundation for your family without losing sight of your long-term goals.