I don’t know, it would take time for a decision by the supreme court to actually get to congress, and the damage could be done by then. Additionally, congress often has issues getting a 2/3 majority on anything, meaning any bad legislation passed by the SC would stay due to congressional deadlock.
A better idea would to mandate that any changes to current law made by a supreme court decision would have to be approved by the legislative before being implemented. In this scenario the deadlock is put to use making legislative action from the bench almost impossible.
Also this will mean that each branch is fulfilling it’s role: congress will actually be in control of legislative action.