Gov. Gavin Newsom and other state Democratic leaders had accused the president of pursuing a political vendetta after he froze federal funding for social services programs.