OSAKA - A Japanese court ordered Thursday that the government grant refugee status to a gay man from a North African country, ruling against immigration authorities as he could be prosecuted in his home nation.