A bill proposed by a Democratic state senator in California would ban the state government from hiring contractors that have worked on President Trump's proposed wall along the Mexican border.

Sen. Ricardo Lara of Bell Gardens, Calif., proposed the legislation to blacklist companies and contractors that are selected by the Trump administration to help build the 2,200-mile fence.

"It is not enough to simply oppose this wall in theory," Lara told a local news outlet.

Lobbyists representing contractors denounced the legislation at a Senate Governmental Organization Committee hearing Tuesday.

"This is precedent setting," Todd Bloomstine of the Southern California Contractors Association said. "What next unpopular project would we blacklist for contractors?"

Hundreds of companies have bid on border-related projects, including some from California.

A similar bill in the state House would require California to rescind its pension investments in companies involved in the wall's construction.