By VLADIMIR ISACHENKOV, Associated Press

MOSCOW (AP) — Russian officials and lawmakers on Wednesday vented their frustration with U.S. President Donald Trump's decision to sign a bill imposing new sanctions on Russia, warning that it will erode global stability and fuel conflicts.

In an emotional Facebook post, Russian Prime Minister Dmitry Medvedev described the move as a humiliating defeat for Trump. The Russian Foreign Ministry warned of possible new retaliatory measures.

"The hope for improving our relations with the new U.S. administration is now over," said Medvedev, who served as Russian president in 2008-2012 before stepping down to allow Vladimir Putin to reclaim the job.

The Kremlin had been encouraged by Trump's campaign promises to improve the Russia-U.S. ties that had grown increasingly strained under President Barack Obama. With the White House preoccupied by congressional and FBI investigations into links between the Trump campaign and Russia, the hoped-for relationship reset has not materialized.

"Trump's administration has demonstrated total impotence by surrendering its executive authority to Congress in the most humiliating way," said Medvedev, who presided during a brief period of improved relations early in Obama's presidency.

"The American establishment has won an overwhelming victory over Trump," he added. The president wasn't happy with the new sanctions, but he had to sign the bill. The topic of new sanctions was yet another way to put Trump in place."

Medvedev emphasized that the stiff new sanctions amount to the declaration of an "all-out trade war against Russia," but added that it will cope with the challenge and only get stronger.

"We will continue to work calmly to develop our economy and social sphere, deal with import substitution and solve important government tasks counting primarily on ourselves," he said. "We have learned how to do it over the past few years."

Without waiting for Trump to sign the bill, which was passed by Congress with overwhelming, veto-proof numbers, Russia fired back Friday. It ordered deep cuts in the number of personnel working at the U.S. embassy and consulates in Russia and the closure of a U.S. recreational retreat and warehouse facilities.

It was the long-expected tit-for-tat response to former U.S. President Barack Obama's move to expel 35 Russian diplomats and shut down two Russian recreational retreats in the U.S. following allegations of Russian meddling in the 2016 presidential election.

Asked Wednesday whether Moscow planned additional steps in response to Trump signing the bill, Putin spokesman Dmitry Peskov answered that "retaliatory measures already have been taken."

But shortly after, the Foreign Ministry warned that "we naturally reserve the right for other countermeasures."

It said the sanctions bill reflects a "short-sighted and dangerous" attempt to cast Russia as an enemy and would erode global stability. The ministry added that "no threats or attempts to pressure Russia will force it to change its course or give up its national interests."

The ministry said, "We are open for cooperation with the U.S. in the spheres where we see it useful for ourselves and international security, including the settlement of regional conflicts," but warned that constructive dialogue was only possible if Washington sheds the notion of "American exclusiveness."

Konstantin Kosachev, who heads the foreign affairs committee in the upper house of the Russian parliament, said the bill Trump signed "leaves no chance for a constructive cooperation with Russia."

"Perspectives for the settlement of Iranian and North Korean problems look grim," Kosachev said. "It means that real threats will exacerbate."

Separately, European Commission President Jean-Claude Juncker said the European Union also would consider retaliatory action if the U.S. sanctions against Russia penalize European energy companies doing business there.

"If the U.S. sanctions specifically disadvantage EU companies trading with Russia in the energy sector, the EU is prepared to take appropriate steps in response within days," he said.

But Juncker said the new sanctions approved by the U.S. Congress and signed into law by Trump appear to have been softened or dropped in response to EU concerns.

He added that Congress "has now also committed that sanctions will only be applied after the country's allies are consulted. And I do believe we are still allies of the U.S."

___

Lorne Cook in Brussels contributed to this story.