Beijing court accepts rare case in which regulator will be asked to provide legal basis for rules that describe homosexuality as ‘abnormal’