Here "troop" may refer to a group of soldiers or to a stone wall. Either way it means God enables David to defeat his enemies.
"I can climb over the wall that surrounds their city"