The school should have had information about that in the syllabus.
Either way, with appropriate accommodations, in person classes can be flexible as well.
And yes, we likely could have sued, but we kind of were quite busy with everything else required to start a family.