A federal judge has ordered a Massachusetts man who embezzled nearly $8 million from two medical practices he used to work to pay over $7 million in restitution.