U.S. President Donald Trump has signed into law sanctions legislation against Russia initiated by the late Senator Lindsey Graham.