Republikaner och demokrater i USA:s kongress har kommit överens om ett stort sanktionspaket riktat mot Ryssland, Iran och Nordkorea.