Pelosi 's visit to Islamabad comes as U.S. lawmakers consider a bill to link military aid to Pakistan 's commitment to fighting Islamic extremists and Taleban militants .