US Republicans and Democrats have reached agreement on legislation that allows new sanctions against Russia, Iran and North Korea, leading congressional Democrats said on Saturday.