Japan court rules ban on same-sex marriage constitutional