Tokyo court ruling upholds ban on same-sex marriage but leaves door open for legislative change