US, Ukraine sign 10-year security agreement as G7 gives Kyiv $50B loan