Stalin was absolutely planning on betraying Germany. And how was Hitler to know the US would ship infinity weapons and vehicles to the Soviets no strings attached? The Soviets would've been toast without that support, whatever gay story the Russians tell themselves about it today.