Members of the United Nations Security Council have agreed on the final text of a long-delayed resolution that gives countries the right to combat piracy off the coast of Somalia, council diplomats said on Monday. A deal on the resolution was struck on Friday, the diplomats said.