Pass a Law saying Judges can only advise and not overturn Lawmakers but a Judge will overturn it ,LOL
The Constitutional remedy is impeachment. A Congress that cared about guarding its prerogative to make law would impeach every one of these jokers instantly the moment they issued such rulings.