A federal judge has blocked Michigan’s effort to shut down the Line 5 pipeline that runs under the Straits of Mackinac.