Afghan parliament approves security pacts with US, NATO