Judges ask the president’s and the National Assembly’s counsel if parliament threw the baby out with the bathwater