Children leaving the foster care system after their 18th birthday would be able to return to state custody.