G7 summit strikes deal on Ukraine loan as US signs security pact with Kyiv