US lawmaker thanks Pakistan for helping evacuate people seeking to leave Afghanistan