The President, as Commander in Chief, would seem to me to have authority over the disposition of surplus DOD military equipment. Deciding that it shall not be distributed, gratis, to police departments would seem, to me, to be within the President's authority.
Whether that is a wise decision is a separate question.
Does Congress have no input?