A U.S. federal judge ordered the SEC to pay about $1.8 million in legal fees to Debt Box and dismissed case against Debt Box without prejudice.