SAN FRANCISCO (CBS/AP) — San Francisco and major U.S. cities and counties across the country are beefing up legal services for immigrants to help them fight deportation and avoid fraudulent lawyers in the wake of Donald Trump’s election.

Tapping local government funds to represent immigrants in federal proceedings is an early example of the type of pushback the Republican incoming president will receive in Democratic strongholds.

Advocates call it a matter of justice and smart economics, but some question whether it’s a fair use of taxpayer money.

Several California state lawmakers have proposed spending tens of millions of dollars to provide lawyers to immigrants facing deportation. San Francisco is considering a proposed $5 million fund. Officials in Los Angeles are working on a plan. Chicago has approved a $1.3 million. New York is mulling a public-private legal fund, building on New York City’s public defender program.