A man charged with the attempted murder of an off-duty PSNI officer shot with his own gun is to be released from custody, a High Court judge ruled today.