Oil climbs, stocks swing as U.S. nears ban of Russian crude