Gov. Jerry Brown and Democratic legislative leaders have reached an agreement on a state budget that expands funding for subsidized child care and eliminates a controversial welfare policy that restricted cash assistance for more than 100,000 children.