President Trump said Sunday that he’s considering withholding federal funds to California if state officials proceed with a proposal to create a “sanctuary state” for illegal immigrants.

“If we have to, we’ll defund,” Mr. Trump said in an interview with Bill O’Reilly broadcast Sunday on Fox News. “We give tremendous amounts of money to California. California in many ways is out of control.”

Democrats in the state’s Senate Public Safety Committee approved a measure last week to restrict police and local agencies throughout the state from cooperating with federal immigration authorities.

The move was in response to an order Mr. Trump signed last week that could result in withdrawing federal money from sanctuary cities, many of which are located in California.