The landmark move ends decades of close work with the Boy Scouts of America.