It certainly was. When the Schindlers presented the application to the federal court, it was the federal courts duty to determine it's legality. The Schindlers did not present their petition under the protection of the law to the 9th circus.
I suggest you re-read the rulings. The constitutionality of the law was not argued in court.