Japan’s top court is set to rule on Wednesday on the validity of a legal clause that requires people who want to legally change their gender to undergo sterilisation surgery.