European Union leaders signed off on a move to loosen budget restrictions so countries can increase their military spending.