US accused of ‘betrayal’ as it votes alongside Russia and North Korea against UN resolution condemning war