What was the evil nasty foreign government supposedly doing?
Seriously?
They successfully (and criminally) hacked both Republican and Democratic computer networks.
Russian intelligence retained the information hacked from Republican systems as kompromat. (Note that Russian Intelligence don't need to make overt blackmail threats, all that is necessary is for Trump to know that the Russians have kompromat.)
The information hacked from Clinton and Democratic computer systems was released both for smear value and to (criminally) aid the Trump campaign with all of the confidential campaign data.
They also (criminally) used the hacked information to meddle in many legislative elections across the country.
They (criminally) funneled financial contributions into the Trump campaign.
They (criminally) successfully hacked into at least one manufacturer of Voting Machines.
They (criminally) attacked the computer election systems in all 50 states, with successful intrusions in many of them. While we don't have confirmation of the Russians directly changing vote totals or indirectly changing totals by altering voter registration records or other means, we really don't know the full extent of what they did after they successfully intruded into all of those state election systems. All we do know is that they successfully compromised the election systems for about half the country.
They ran a massive campaign of lies and fabricated stories to slander Clinton, slander Democrats, and slander Republicans that criticized Trump. Slander is illegal, and it almost surely violated some part of the criminal campaign laws.
That list of course doesn't include any Russian activities that are still held as classified. It of course doesn't include any Russian activities that weren't caught. And I didn't bother with hostile actions that that might not directly violate the law.
-