A court has found Japan’s refusal to legalize same-sex marriage constitutional in the last of six cases likely to be brought to the Supreme Court for a final ruling