NUSA DUA, Indonesia — The World Trade Organization reached its first trade reform deal on Saturday to a roar of approval from nearly 160 ministers on the Indonesian island of Bali who had decided on the agreement, which could add $1 trillion to the global economy.

The approval came after Cuba backed off from a threat to veto the package of measures.

The talks, which began on Tuesday, nearly derailed when Cuba refused to accept a deal that would not help open the United States embargo of the Caribbean island. That forced negotiations into Saturday morning.

Cuba later agreed on a compromise with the United States.

But there was skepticism on how much the deal had achieved.

“Dealing with the fracas on food security sucked the oxygen out of the rest of the talks,” said Simon J. Evenett, professor of international trade at the University of St. Gallen in Switzerland.