European leaders have scrambled to broker an agreement that could appease Ukraine and the US as the countries look to end the war with Russia.