Court orders release of Brotherhood leader Beltagi