You are subtly implying incorrectly that people are working lesser number of hours while working from home. This is farther from the truth. If anything all the time saved in commute is spent in coding
This is a genius move. The problem with japan's work culture is that its very hard to change the longer work hours. The alternative is to reduce the number of working days. This becomes level playing field for everyone and so there is good chance this will work, if it becomes law.