The nation’s top military leader told Congress Thursday that the United States would consider dispatching a modest number of American forces to fight with Iraqi troops as they engage in more complex missions in the campaign against Islamic State militants.