Syria, North Korea take swipes at West as UN assembly ends