Legislation that commits the federal government to long-term funding of the national child-care system is poised to become law.