The American ambassador, Nikki R. Haley, who has called chemical weapons attacks in Syria “barbaric,” accused Russia and China of putting “their friends in the Assad regime ahead of our global security” in her blunt rebuke of the vetoes.