A luxury cruise ship which was stranded in Belfast for four months is to return to the city just hours after it finally set sail.