Legislature approves investment in all-day kindergarten