Many middle-class and wealthy families will see some benefits from the new legislation. But programs that help low-income families keep babies healthy have been cut back.