Local and state agencies are counting on the federal government to cover the cost of extra police, but it’s not guaranteed.