If the Supreme Court discharges a restriction order, it may make any other order in respect of the defendant that it could have made under section 18(2) or 21 .