A U.S.-sponsored draft resolution that for the first time would have condemned the militant Islamic group Hamas, which controls Gaza, failed to win the required two-thirds majority in the U.N. General Assembly.