They accidentally repaid their loan early, which was explicitly allowed in the contract. The hedge funds were under no obligation to pay them back, since the money was now rightfully theirs.
Yes, exactly. They sent the money to their creditors. Had they accidentally sent it to someone who they didn't owe money to, the courts would order the money to be returned.