EU leaders have agreed a boost €800bn in defence spending as the US pauses military aid to Ukraine.