The lawmakers said they were concerned that sustained military and nation-building campaigns in Afghanistan distracted Washington from the larger national security objective of pursing the global al-Qaida network .