A U.S. judge has ordered the SEC to pay $1.8 million in legal fees to Debt Box after criticizing the agency for inaccuracies and misconduct in the case.