TOKYO - Japan's top court on Tuesday ruled unanimously against the trade ministry's imposition of restrictions on the use of women's restrooms by a transgender official, marking the first judgment by the court on workplace environments for sexual minorities.