Palestinian prisoners end hunger strike following deal