The strategic partnership agreement commits the United States to another decade of involvement in the country in areas like economic development and education.
The meeting in Chicago is a NATO summit at which countries involved in the war are expected to commit to continuing financial contributions to Afghanistan as well as committing to train and equip the forces.
The deal on night raids was the second of two contentious issues that the two countries resolved to solve ahead of work on the broader pact. The other issue involved the handover to the Afghans of the main United States detention facility in Parwan. That memorandum of understanding was signed on March 8.
President Hamid Karzai has long been at odds with the American military over the raids, which the Americans have described as a crucial tool in the fight against insurgents. The raids until recently were primarily conducted by American special operations forces.