SAN FRANCISCO—The city of San Francisco and state of California are mounting a coordinated legal effort to fight restrictions the Trump administration has placed on giving federal law enforcement grants to so-called sanctuary cities.

California Attorney General Xavier Becerra and San Francisco City Attorney Dennis Herrera held a joint press conference at San Francisco City Hall Monday morning to announce a pair of federal lawsuits challenging special conditions the U.S. Department of Justice placed on the Edward Byrne Memorial Justice Assistance Grant Program.