MONTREAL — More than 45 nations signed a pledge in Montreal on Thursday to repatriate to Ukraine the civilians, prisoners of war and children taken by Russia since it invaded the country nearly three years ago.