SACRAMENTO -- A Democratic resolution denouncing outsourcing of government functions to private contractors passed the Assembly on Thursday after prompting a spirited partisan debate about the role of government.

The nonbinding, union-sponsored resolution by Assemblyman Jimmy Gomez, D-Los Angeles, passed on a 42-22 vote. HR29 says the Assembly opposes outsourcing of public services if it harms transparency and competition.

Gomez says his resolution responds to government entities relying too much on private contractors during years of budget cuts and not considering whether public employees could do the work better. Local governments contract out for services that include garbage removal, park maintenance, mental health treatment and urban planning.

Acting at the urging of public employee unions, Democrats say government contractors often pay low wages and shroud the spending of taxpayer money in secrecy.

"You're moving taxpayer resources more often than not into the hands of the 1 percent, the owners, and who pays? It's at the expense of good-paying jobs," said Assemblyman Roger Hernandez, D-West Covina.

Republican lawmakers say the ideas behind the resolution undermine competition and encourage government waste.

"If public employees have a better way, a more efficient way, a more cost-effective way of doing things, we shouldn't discourage them from speaking up," said Assemblywoman Melissa Melendez, R-Lake Elsinore. "But we should also not discourage any local government or state government from getting the best services for the best price."

Gomez questioned the competitiveness of outsourced work when agencies renew contracts year after year without considering alternatives. The resolution says anti-outsourcing legislation will be introduced.

"They shouldn't look at outsourcing as a panacea for all their financial problems," Gomez said in an interview after the vote.

The resolution is sponsored by the American Federation of State, County and Municipal Employees and is backed by other unions. Nationwide, the public employees' union has been fighting for bills limiting private contracting.