Cities such as Los Angeles, Minneapolis, New York City, Portland, Ore., and Austin, Texas, have shifted funds from police departments to social services programs. Such cuts have led some departments to lay off officers, cancel recruiting classes or retreat from hiring goals.