The United States has also welcomed Pakistan 's military efforts but is reportedly pressuring the civilian government to also counter militants on Pakistani soil who attack NATO and US troops across the border in Afghanistan .