A Norwegian court has ruled that the stepson of King Haakon, can be released from custody ‌while he ‌awaits an appeal hearing over his convictions for rape.