The US military has cut troop levels in Afghanistan and Iraq to 2,500 each, their lowest levels in the nearly two decades since the wars began.