A U.S. military mission to build and operate a floating pier for the delivery of humanitarian aid to Gaza has ended, having only been operational for 25 days.