The Pentagon has provided surplus military vehicles, rifles, pistols to local police departments, as part of a program to give away unused military supplies.