The Trump administration on Thursday blamed the Russian government for a campaign of cyber attacks stretching back at least two years that targeted the US power grid, marking the first time the United States has publicly accused Moscow of hacking into American energy infrastructure.