The government contract for the controversial asylum barge in Dorset has ended.