The change ends the country's long-standing sole custody framework, under which only one parent could retain parental rights following a divorce.