Inside a lavish clubhouse on Doha's waterfront, tensions strained by months of fruitless back-and-forth weighed on negotiators as the hour neared 3 a.m.