A federal court is shutting down a Massachusetts manufacturer for making and distributing adulterated drugs.