A freighter carrying 970 people, most believed to be migrants from war-torn Syria, docked safely in the southern Italian port of Gallipoli on Wednesday after the coast guard seized control.