You can bring as much powdered formula as you want.
For the baby food, if it's a liquid, you can bring a "reasonable amount" so that really depends on the TSA agent, but you aren't restricted to 3 ounces. If it's solid food (like gerber puffs or something) you don't have any restrictions.