A deal designed to end Ukraine’s long-running crisis was signed Friday afternoon by President Viktor Yanukovych and the three leaders of the political opposition, but the accord appeared likely to be a hard sell among the thousands of demonstrators who have sustained months of protest.