WASHINGTON, D.C. -- The State Department is confirming that the 35 Russian diplomats President Barack Obama ordered out of the country have departed the United States.

Mr. Obama expelled the diplomats, saying they were really spies, and ordered new sanctions on Russian spy agencies for alleged Russian hacking of political sites during the presidential election.

The State Department said Sunday that the 35 Russian diplomats, along with their family members, have left the United States.

Mr. Obama also shuttered two Russian compounds in Maryland and New York. The U.S. said the two Cold War-era estates were being used for intelligence activities.

Get Breaking News Delivered to Your Inbox

The 45-acre Maryland retreat boasts a brick mansion along the Corsica River in the bucolic Eastern Shore region. Reports indicate it was bought by the Soviet Union in 1972 and served as a getaway for its diplomats in nearby Washington.

In New York, Russian diplomatic staff members were evicted from a mansion on Long Island’s Gold Coast. The estate, once called Elmcroft, is in the town of Oyster Bay and was purchased by the Soviets in 1952.

Investigators say a hacking unit known as APT28 targeted Democratic Party officials by sending malicious emails last spring that tricked recipients into changing their passwords, CBS News homeland security correspondent Jeff Pegues reported. U.S. intelligence officials believe that hack likely gave Russian operatives access to the information of senior Democratic Party officials, which was then leaked to the press and publicly disclosed.

President Obama announced the step Thursday as part of a raft of sanctions that included the expulsion of 35 Russians who the U.S. said were spies operating under diplomatic cover.