President Hamid Karzai , in a meeting with more than 1,000 representatives from the provinces who gathered here in the capital , won broad support on Sunday for the continued presence of foreign troops in Afghanistan after parliamentary elections in the fall .