U.S. President Donald Trump will sign legislation that imposes sanctions on Russia, the White House said on Friday.