They agreed to restrict migrants moving within the bloc but made clear virtually all of their pledges would be carried out on a "voluntary basis" by member states.