European Union leaders said on Thursday they would tighten their borders to keep away unwanted immigrants, with some seeking more fences and walls while others would rather spend the money on improving living conditions in worse-off parts of the world.