United States President Donald Trump took to Truth Social to say Russia and Ukraine have agreed not to target energy infrastructure.