Leaders representing the Group of Seven nations are set to announce as soon as Thursday an agreement to loan money to Ukraine backed by the profits from frozen Russian investments, according to sources familiar with the discussions, providing a new source of revenue to a war-torn nation facing a steep and costly road to recovery.