President Barack Obama will tell world leaders the United States "will never retreat from the world" at the UN General Assembly.