A weekslong standoff ended with the detention of hundreds of pro-Palestinian activists who tried to sail to the war-torn enclave.