Obama says US closer than ever to defeating al-Qaeda