A nightmare ordeal for 156 passengers trapped aboard a ferry for more than 24-hours has finally come to an end.