With a deadline closing in fast, negotiators were racing to strike a deal, with an agreement said to be imminent.