The move was one of a number of retaliatory measures the White House announced in response to what it called a Russian campaign to wreak havoc on the presidential election, and to what it said was systemic harassment of American officials in Russia.