US President Donald Trump has walked back the possibility of an agreement that would give Ukraine access to long-range Tomahawk missiles to use against Russia.