Ireland's cabinet agreed on Friday to join Apple in appealing against a multi-billion-euro back tax demand that the European Commission has slapped on the iPhone maker, despite misgivings among independents who back the fragile coalition.

The Commission's ruling this week that the U.S. tech giant must pay up to 13 billion euros ($19.07 billion Cdn) to Dublin has angered Washington, which accuses the EU of trying to grab tax revenue that should go to the U.S. government.

With transatlantic tensions rising, the White House said President Barack Obama would raise the issue of tax avoidance by some multinational corporations at a summit of the G20 leading economies in China this weekend.

Paradoxically, Ireland is determined not to receive the tax windfall, which would be equivalent to what it spent last year on funding its struggling health service.

Finance Minister Michael Noonan has insisted Dublin would fight any adverse ruling ever since the European Union began investigating Apple's Irish tax affairs in 2014, arguing that it had to protect a tax regime that has attracted large numbers of multinational employers.

Belgium EU Apple

European Union Competition Commissioner Margrethe Vestager speaks Tuesday at EU headquarters in Brussels. The European Union says Ireland has given illegal tax benefits to Apple Inc. and must now recover the unpaid back taxes. (Virginia Mayo/Associated Press)

On Wednesday, he failed to persuade a group of independent lawmakers, whose support is vital for the minority government, to agree to fight the ruling by European Competition Commissioner Margrethe Vestager that Apple's low tax arrangements in Ireland constitute illegal state aid.

However, he won them over at a second attempt when the cabinet met on Friday.

Apple, keen to defend its own interests, has already said it will lodge an appeal. For Fine Gael, the main Irish coalition party, a broader principle is at stake. It wants to take on Brussels to safeguard Ireland's decades-old low corporate tax policy that has drawn in multinationals such as Apple, creating one in 10 jobs in what was once an impoverished country.

A fair rate of tax

The Independent Alliance, a group of five lawmakers, fell in line after the coalition agreed to conduct a review of what tax multinationals pay and what should they pay.

Transport Minister Shane Ross, an Alliance member, defended Apple up to a point. "I think they were acting legally. What they were doing was making use of extraordinary loopholes that existed there," he told reporters. "Multinationals provide absolutely vital jobs to the economy ... (but) multinationals should pay a fair rate of tax in Ireland."

A failure of the Alliance to come on board would have cast doubt on the government's survival prospects. Dublin has just over two months to lodge an appeal.

A government spokesman said the issue would go to parliament on Wednesday next week. The main opposition party, Fianna Fail, also favours challenging Brussels, so the government should easily win the Dail's backing to fight what is by far the largest anti-competition measure imposed on a company by the EU.

Some Irish voters are astounded that the government might turn down the money, and the left-wing Sinn Fein party has led attacks from the opposition.

Apple was found to be holding over $181 billion US in accumulated profits offshore, more than any U.S. company, in a study published last year by two left-leaning nonprofit groups, a policy critics say is designed to avoid paying U.S taxes.

But Apple chief executive Tim Cook has said part of the company's 2014 tax bill would be paid next year when the company repatriates offshore profits to the United States.

Obama to take the lead

The U.S. government is keen to ensure that it, and not Ireland, gets the revenue.

White House spokesman Josh Earnest said leaders of the G20 developed and emerging economies would tackle the wider issue when they meet in the Chinese city of Hangzhou on Sept. 4-5.

"The president will ... lead the discussion at the G20 about combating tax avoidance strategies that are implemented by some multinational corporations," Earnest said.

"We need to find a way to make the global system of taxation more fair - more fair to countries around the world, particularly countries like the United States."