The U.S. leader claimed Moscow wouldn’t have invaded Ukraine if it hadn’t been banned from the forum.