WASHINGTON — In a show of solidarity with President Obama, Congress spoke with one voice on Thursday against Russia’s annexation of Crimea, overwhelmingly backing legislation in the House and Senate to aid cash-short Ukraine and punish Russia.

On a voice vote, the Senate approved a measure that would provide $1 billion in loan guarantees to Ukraine and give Obama broad authority to impose more sanctions on Russia and President Vladimir Putin’s inner circle for Moscow’s brazen incursion into Crimea this month.

The House endorsed a different version on a 399-19 vote that also provides assistance to Ukraine and penalizes Russia. Lawmakers hope to send a single bill — the Senate measure — to the White House for Obama’s signature by the end of the week.

“It is vitally important that the United States, in conjunction with our European Union and NATO allies, send an unmistakable signal that this aggression will not be tolerated,” said House Majority Leader Eric Cantor, R-Va.

The votes came as Obama wrapped up a European trip in which he enlisted the support of allies in challenging Russia’s aggression. The rare congressional unity stood in sharp contrast to recent partisan divisions over |the Ukraine package, which had been caught up in disputes over new IRS regulations on groups claiming tax-exempt status and International Monetary Fund reforms.

In retreat two days ago, Senate Democrats backed down and stripped the IMF reform from the bill, a defeat for the Obama administration, which had promoted the IMF provisions.

Ukraine, a nation of 46 million, is battling to install a semblance of normality since Viktor Yanukovych was ousted as president in February after months of protests touched off by his decision to back away from closer relations with the EU in favor of Russia.

During the past few weeks, an interim government has formed, Ukraine has lost Crimea to Russia and fears have been raised over the possibility of further military incursions by Moscow. Ukraine is also bracing for a turbulent political season ahead of a presidential election.

Ukraine is politically divided, with western regions favoring closer ties to Europe and the east looking toward Russia. But the dire state of its economy is an unavoidable issue: Ukraine’s Finance Ministry has said it needs $35 billion over the next two years to avoid default.

Asked if the $1 billion in loan guarantees that Congress is pledging is enough, Sen. Bob Menendez, chairman of the Foreign Relations Committee, noted that Washington is also the largest contributor to the International Monetary Fund, which on Thursday pledged up to $18 billion in loans to prop Ukraine’s teetering economy. The money is hinged on structural reforms that Ukraine has pledged to undertake.

Other donors, including the European Union and Japan, have already pledged additional aid to Ukraine, conditional on the conclusion of an IMF bailout and reform package. The total amount of international assistance will be about $27 billion over the next two years.

Taken together, all the assistance is in the “ballpark of what we need,” said Menendez, a New Jersey Democrat.

The Senate bill would provide $1 billion in loan guarantees to help stabilize Ukraine’s economy.

It authorizes $50 million in assistance to Ukraine for things like improving democratic governance and anti-corruption efforts, supporting free and fair elections, and bolstering democratic institutions and civil society organizations.

The bill also authorizes an additional $100 million to enhance security cooperation among the United States, the European Union and countries in central and eastern Europe; it further authorizes the president to provide defense articles and services, and additional security assistance to Ukraine and countries in the region.

Targeting Russia, the bill would freeze assets and revoke the visas of Russian officials and their associates who are complicit in or responsible for significant corruption in Ukraine.

“Putin’s cronies should recognize that Putin may not be the right horse to be betting on any longer,” Menendez said.

The top Republican on the Senate Foreign Relations Committee, Sen. Bob Corker of Tennessee, said he hoped that once the bill is signed into law, the administration will opt to sanction three or four additional Russian banks.

“What I hope the administration will do is to turn the volume up and actually send some strong sanctions into the energy sector, into the banking sector,” he said.

To expedite the Ukraine package, lawmakers decided to vote separately on one provision of the House-passed bill on broadcast rights.

The legislation would provide money to step up broadcasts by Radio Free Europe/Radio Liberty and Voice of America to counter Russia-supported messages airing in Ukraine.

“Moscow is using propaganda to sow confusion and fear in the Ukraine right now,” said Rep. Ed Royce, R-Calif., chairman of the House Foreign Affairs Committee.