When France temporarily blocked trains from Italy headed to French coastal destinations over the weekend, the move marked a dramatic escalation in the two countries’ spat over how to handle migrants fleeing unrest in North Africa and raised legal questions about fundamental travel accords long embraced many European Union member states.