The Australian Taxation Office has been ordered by the Federal Court to repay $4.2 million to an entity that formerly traded as Mrs Mac's.