They allow it until the kids are 19. Then they are supposed to make a decision about which one they want to keep.
There was a lawyer, originally from Japan, living in the US who did try to force clarity on this issue and sued the Japanese government. Unfortunately she lost so the status quo remains. https://www.asahi.com/ajw/articles/15077494