JAKARTA — The Indonesian House of Representatives late Monday passed a revised state budget that included a highly contentious increase in the price of subsidized gasoline, despite moves by opposition parties to block the measure and street protests around the country.

Lawmakers from President Susilo Bambang Yudhoyono’s governing coalition pushed through the budget shortly before midnight with 338 votes in the 560-seat legislature after nearly 12 hours of intense debate and lobbying in an all-day plenary session. Three opposition parties led by the Indonesian Democratic Party of Struggle, or P.D.I.P., voted against the budget and were joined by the Islamic-based Prosperous Justice Party, the lone member of Mr. Yudhoyono’s governing coalition to break ranks.

In the coming weeks, subsidized gasoline prices will rise 44 percent, from 4,500 rupiah, or 45 cents, a liter, or 0.26 gallon, to 6,500 rupiah to help close a widening budget deficit. The revised budget also includes around 9 trillion rupiah for a cash compensation program for poor Indonesian families to cushion the blow from the subsidy decision and a resulting increase in inflation, as was done when gasoline prices were raised in 2008.

Amid heavy rain, protesters including members of labor groups — the Jakarta police estimated as many as 4,000 — staged rallies and burned tires Monday outside the national legislative complex in south Jakarta to voice opposition to any price increases. The police said they had deployed nearly 20,000 officers to maintain order, given violent protests that had erupted during past fuel price debates.